]> git.ipfire.org Git - thirdparty/glibc.git/commit
posix: Fix double-free after allocation failure in regcomp (bug 33185) release/2.39/master
authorFlorian Weimer <fweimer@redhat.com>
Mon, 21 Jul 2025 19:43:49 +0000 (21:43 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 24 Jul 2025 07:22:08 +0000 (09:22 +0200)
commitb027d5b145f1b2908f370bdb96dfe40180d0fcb6
treea2332daa4de87fca53c236a16d00c3d06dab6b0c
parentcff1042cceec3502269947e96cf7023451af22f3
posix: Fix double-free after allocation failure in regcomp (bug 33185)

If a memory allocation failure occurs during bracket expression
parsing in regcomp, a double-free error may result.

Reported-by: Anastasia Belova <abelova@astralinux.ru>
Co-authored-by: Paul Eggert <eggert@cs.ucla.edu>
Reviewed-by: Andreas K. Huettel <dilfridge@gentoo.org>
(cherry picked from commit 7ea06e994093fa0bcca0d0ee2c1db271d8d7885d)
NEWS
posix/Makefile
posix/regcomp.c
posix/tst-regcomp-bracket-free.c [new file with mode: 0644]