public inbox for glibc-bugs-regex@sourceware.org
help / color / mirror / Atom feed
* [Bug regex/31935] New: memory leak in regcomp.c
@ 2024-06-27 20:21 dj at redhat dot com
2024-06-27 20:42 ` [Bug regex/31935] " schwab@linux-m68k.org
2024-07-08 12:40 ` carlos at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: dj at redhat dot com @ 2024-06-27 20:21 UTC (permalink / raw)
To: glibc-bugs-regex
https://sourceware.org/bugzilla/show_bug.cgi?id=31935
Bug ID: 31935
Summary: memory leak in regcomp.c
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: regex
Assignee: unassigned at sourceware dot org
Reporter: dj at redhat dot com
CC: drepper.fsp at gmail dot com
Target Milestone: ---
new_array_start = re_realloc (mbcset->range_starts, uint32_t,
new_nranges);
new_array_end = re_realloc (mbcset->range_ends, uint32_t,
new_nranges);
if (__glibc_unlikely (new_array_start == NULL
|| new_array_end == NULL))
return REG_ESPACE;
If one is null but the other isn't, the non-null one is leaked.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug regex/31935] memory leak in regcomp.c
2024-06-27 20:21 [Bug regex/31935] New: memory leak in regcomp.c dj at redhat dot com
@ 2024-06-27 20:42 ` schwab@linux-m68k.org
2024-07-08 12:40 ` carlos at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: schwab@linux-m68k.org @ 2024-06-27 20:42 UTC (permalink / raw)
To: glibc-bugs-regex
https://sourceware.org/bugzilla/show_bug.cgi?id=31935
--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
The other variant of build_range_exp inside !_LIBC was fixed in commit
eb04c21373.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug regex/31935] memory leak in regcomp.c
2024-06-27 20:21 [Bug regex/31935] New: memory leak in regcomp.c dj at redhat dot com
2024-06-27 20:42 ` [Bug regex/31935] " schwab@linux-m68k.org
@ 2024-07-08 12:40 ` carlos at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: carlos at redhat dot com @ 2024-07-08 12:40 UTC (permalink / raw)
To: glibc-bugs-regex
https://sourceware.org/bugzilla/show_bug.cgi?id=31935
Carlos O'Donell <carlos at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |carlos at redhat dot com
Keywords| |SAST
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-08 12:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-27 20:21 [Bug regex/31935] New: memory leak in regcomp.c dj at redhat dot com
2024-06-27 20:42 ` [Bug regex/31935] " schwab@linux-m68k.org
2024-07-08 12:40 ` carlos at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).