This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Re: [PATCH] re_compile_pattern error handling


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jakub Jelinek wrote:
> I'm not sure if we are required to do this or not, but
> if re_compile_pattern fails, it leaves the pattern buffer with cleared
> buffer argument, but non-zero allocated, so if the application doesn't clear
> allocated itself before calling re_compile_pattern on that pattern buffer
> again, it segfaults.

The user should not have to do anything.  I've applied the patch.  Thanks,

- -- 
- --------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+Juv42ijCOnn/RHQRAmUnAKC2xcAdhADRn6cvDb4U4HSU/PiBTACfSrAH
nw/R4n1kfL3HJwvieFtAXLw=
=45tx
-----END PGP SIGNATURE-----


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