freebsd-src/lib/libc/regex
Corinna Vinschen 619f455b8f regex: fix freeing g->charjump in low memory condition
computejumps() moves g->charjump to a position relativ to the value of
CHAR_MIN.  As such, g->charjump doesn't necessarily point to the address
actually allocated.  While regfree() takes that into account, the low
memory handling in regcomp_internal() doesn't.  Fix that by free'ing
the actually allocated address, as in regfree().

MFC After: 2 weeks
Reviewed by: imp,jrtc27
Pull Request: https://github.com/freebsd/freebsd-src/pull/692
2024-02-02 11:51:54 -07:00
..
grot libc: Purge unneeded cdefs.h 2023-11-01 16:44:30 -06:00
cname.h lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
COPYRIGHT lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
engine.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
Makefile.inc lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
re_format.7 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
regcomp.c regex: fix freeing g->charjump in low memory condition 2024-02-02 11:51:54 -07:00
regerror.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
regex.3 lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
regex2.h lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
regexec.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
regfree.c lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
Symbol.map libc: Remove empty comments in Symbol.map 2023-11-15 17:51:03 +00:00
utils.h lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
WHATSNEW lib: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00