]> git.ipfire.org Git - thirdparty/glibc.git/commit
posix: Fix double-free after allocation failure in regcomp (bug 33185)
authorFlorian Weimer <fweimer@redhat.com>
Mon, 21 Jul 2025 19:43:49 +0000 (21:43 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 21 Jul 2025 19:43:49 +0000 (21:43 +0200)
commit7ea06e994093fa0bcca0d0ee2c1db271d8d7885d
treec825408be64b642e49d0f805f2d7c3f551347ab6
parent0f93d54cde08d1da321493b999d6833779995a86
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>
posix/Makefile
posix/regcomp.c
posix/tst-regcomp-bracket-free.c [new file with mode: 0644]