This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/53242] Invalid write in push_back
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 05 May 2012 00:33:21 +0000
- Subject: [Bug libstdc++/53242] Invalid write in push_back
- Auto-submitted: auto-generated
- References: <bug-53242-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53242
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-05-05 00:33:21 UTC ---
44 buckets[ bucket_num ].push_back( x[elem] );
(gdb) p bucket_num
$1 = 7
(gdb) p num_buckets
$2 = 4
So you are accessing past the bounds of buckets.