This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug regex/24844] regex bad pointer / leakage if malloc fails


https://sourceware.org/bugzilla/show_bug.cgi?id=24844

Carlos O'Donell <carlos at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |carlos at redhat dot com

--- Comment #1 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to eggert from comment #0)
> Created attachment 11919 [details]
> Patch for bad pointer / leak in regex_internal.c
> 
> regex_internal.c mistreats malloc failures in a couple of places. In one, it
> dereferences the resulting NULL pointer; in the other, it leaks another
> block of memory when an malloc fails. The latter problem was found by
> Coverity. Proposed patch attached.

Please post to libc-alpha if you think this should be fixed for 2.30.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]