]> git.ipfire.org Git - thirdparty/glibc.git/commit
regex: fix uninitialized memory access
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 28 Aug 2018 19:54:28 +0000 (21:54 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 28 Aug 2018 19:54:28 +0000 (21:54 +0200)
commit58559f14437d2aa71753a29fed435efa06aa4576
tree60a9a7e3458a59fa78b9f05faf752ee2cf3630e6
parentaa8a3e4cdef20c50cb20f008864fff05cbfbdf29
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.

(cherry picked from commit bc680b336971305cb39896b30d72dc7101b62242)
ChangeLog
NEWS
posix/regex_internal.c