[PATCH] re_compile_pattern error handling

Ulrich Drepper drepper@redhat.com
Thu Jan 16 17:29:00 GMT 2003


-----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-----



More information about the Libc-hacker mailing list