This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/65022] basic_string operator[]s allow out of range access
- 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: Wed, 11 Feb 2015 17:39:41 +0000
- Subject: [Bug libstdc++/65022] basic_string operator[]s allow out of range access
- Auto-submitted: auto-generated
- References: <bug-65022-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65022
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I'm not sure what you are saying is a bug, but I'm guessing you missed this
precondition:
1 Requires: pos <= size().