[Bug regex/18040] use-after-free in regexec/get_subexp
cvs-commit at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Sun Dec 16 15:09:00 GMT 2018
https://sourceware.org/bugzilla/show_bug.cgi?id=18040
--- Comment #6 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via ef202e530c2384d6a47951ed1c6b63ed945e462f (commit)
via 077caf61d867d4cab49b5aa42da1611868596fe7 (commit)
from 0c1719e65b2a5a80331d4f635612799f853b0479 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ef202e530c2384d6a47951ed1c6b63ed945e462f
commit ef202e530c2384d6a47951ed1c6b63ed945e462f
Author: Paul Eggert <eggert@cs.ucla.edu>
Date: Wed Sep 5 23:57:08 2018 -0700
regex: fix storage-exhaustion error
[BZ #18040]
* posix/regexec.c (get_subexp):
Do not continue if storage is exhausted.
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=077caf61d867d4cab49b5aa42da1611868596fe7
commit 077caf61d867d4cab49b5aa42da1611868596fe7
Author: Assaf Gordon <assafgordon@gmail.com>
Date: Wed Sep 5 23:25:07 2018 -0700
regex: fix heap-use-after-free error
[BZ #18040]
Problem reported by Saito Takaaki <tails.saito@gmail.com> in
https://debbugs.gnu.org/32592
Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
call extend_buffers which reallocates the re_string_t internal buffer.
Local variable 'buf' was not updated in such case, resulting in
use-after-free.
* posix/regexec.c (get_subexp): Update 'buf' after call to
get_subexp_sub.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 20 ++++++++++++++++++++
posix/regexec.c | 3 +++
2 files changed, 23 insertions(+), 0 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list