This is the mail archive of the
glibc-bugs-regex@sourceware.org
mailing list for the glibc project.
[Bug regex/5718] Uninitialised struct member in re_compile_internal causes crash in regfree
- From: "bonzini at gnu dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs-regex at sources dot redhat dot com
- Date: 4 Feb 2008 13:55:54 -0000
- Subject: [Bug regex/5718] Uninitialised struct member in re_compile_internal causes crash in regfree
- References: <20080204132153.5718.rrt@sc3d.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From bonzini at gnu dot org 2008-02-04 13:55 -------
Can you please pick an old copy of regex (one with the texinfo manual in it)
from ftp.gnu.org and check how translate is documented? Given the way it works
now, I would say that it does need to malloced memory (unless you do the extra
effort to NULL the field out before calling regfree).
My personal theory is that in olden times free(3) was enough to free a GNU
regex. Now it's not anymore and you're forced to call regfree.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=5718
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.