diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-07-10 11:18:26 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-07-10 11:18:26 +0200 |
commit | 7b2f4cedf044ea83f53f6b43a5bf6871eb9ce969 (patch) | |
tree | 4e579c9471bc1d2d1a799ba005023fc7a7f4440b /io/sys | |
parent | 4fa34da6793c442255fc003cf659c85b197ab29a (diff) | |
download | glibc-7b2f4cedf044ea83f53f6b43a5bf6871eb9ce969.zip glibc-7b2f4cedf044ea83f53f6b43a5bf6871eb9ce969.tar.gz glibc-7b2f4cedf044ea83f53f6b43a5bf6871eb9ce969.tar.bz2 |
regexec: Fix off-by-one bug in weight comparison [BZ #23036]
Each weight is prefixed by its length, and the length does not include
itself in the count. This can be seen clearly from the find_idx
function in string/strxfrm_l.c, for example. The old code behaved as if
the length itself counted, thus comparing an additional byte after the
weight, leading to spurious comparison failures and incorrect further
partitioning of character equivalence classes.
Diffstat (limited to 'io/sys')
0 files changed, 0 insertions, 0 deletions