]> git.ipfire.org Git - thirdparty/glibc.git/commit
regex: fix uninitialized memory access
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 26 Aug 2018 03:34:34 +0000 (20:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 26 Aug 2018 03:34:34 +0000 (20:34 -0700)
commitbc680b336971305cb39896b30d72dc7101b62242
tree2de1e3a1aa1fca98cc1abaac30816ceb4267f262
parent02458a5236c245929c6235853c8ff7c92f38d737
regex: fix uninitialized memory access

I introduced this bug into gnulib in commit
8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
eventually it was merged into glibc.  The bug was found by
project-repo <bugs@feusi.co> and reported here:
https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
Diagnosis and draft fix reported by Assaf Gordon here:
https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
* posix/regex_internal.c (build_wcs_upper_buffer):
Fix bug when mbrtowc returns 0.
ChangeLog
posix/regex_internal.c