diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-05-28 17:14:30 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-05-28 17:14:30 -0400 |
commit | 8887a920a4b81a500f54893250085e0d1a52cf9a (patch) | |
tree | 94355b4c7eefa011600c53ea0dcaaa8b152eacb6 /ChangeLog | |
parent | 4f031072a5055abd83717820b59efdaa463d5853 (diff) | |
download | glibc-8887a920a4b81a500f54893250085e0d1a52cf9a.tar glibc-8887a920a4b81a500f54893250085e0d1a52cf9a.tar.gz glibc-8887a920a4b81a500f54893250085e0d1a52cf9a.tar.bz2 glibc-8887a920a4b81a500f54893250085e0d1a52cf9a.zip |
Fix unnecessary overallocation due to incomplete character
When incomplete characters are found at the end of a string the
code ran amok and allocated lots of memory. Stricter limits
are now in place.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1,5 +1,17 @@ 2011-05-28 Ulrich Drepper <drepper@gmail.com> + [BZ #12811] + * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to + grow the buffers more if it already has to be sufficient. + (build_wcs_upper_buffer): Likewise. + * posix/regexec.c (check_matching): Likewise. + (clean_state_log_if_needed): Likewise. + (extend_buffers): Don't enlarge buffers beyond size of the input + buffer. + Patches mostly by Emil Wojak <emil@wojak.eu>. + * posix/bug-regex32.c: New file. + * posix/Makefile (tests): Add bug-regex32. + * locale/findlocale.c (_nl_find_locale): Return right away if _nl_explode_name failed. * locale/programs/locarchive.c (add_locale_to_archive): Likewise. |