[Bug libstdc++/61582] C++11 regex memory corruption

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 25 09:54:00 GMT 2014


Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |NEW
   Last reconfirmed|                            |2014-06-25
         Resolution|INVALID                     |---
            Summary|C11 regex memory corruption |C++11 regex memory
                   |                            |corruption
     Ever confirmed|0                           |1

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Maksymilian A from comment #2)
> cx@cx:~/REstd11/kozak5$ ./c11re '((x|'
> terminate called after throwing an instance of 'std::regex_error'
>   what():  regex_error
> Przerwane (core dumped)

I think this is by design.

> cx@cx:~/REstd11/kozak5$ ./c11re '((.*)()?*{100})'
> Naruszenie ochrony pamięci (core dumped)

That's a bug.

(It would be helpful if you didn't put C11 in the subject, this has nothing to
do with C)

More information about the Gcc-bugs mailing list