This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/65470] regex_search corrupts matches when haystack is destroyed
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 20 Mar 2015 09:44:29 +0000
- Subject: [Bug libstdc++/65470] regex_search corrupts matches when haystack is destroyed
- Auto-submitted: auto-generated
- References: <bug-65470-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65470
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Your program's invalid for other reasons too, you can't mix strdup and delete.