Visual C++ 2012 RTM - x86-32 - std::vector<bool> operator [] crashes if index > int_max - by Chris Yaz

Status : 


Sign in
to vote
ID 763795 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 9/20/2012 9:05:10 AM
Access Restriction Public


Compiled for x86-32.

std::vector<bool> vector(2500000000, false);
vector[2147483647] = true; //ok
vector[2147483648] = true; //crash
Sign in to post a comment.
Posted by Microsoft on 4/29/2014 at 12:32 PM
Thank you for reporting this issue. This issue has been fixed in Visual Studio 2013. You can install a trial version of Visual Studio 2013 with the fix from:
Posted by Microsoft on 11/29/2012 at 1:47 PM

Thanks for reporting the bug. We've fixed it, and the fix will be available in the next release of our C++ Standard Library implementation.

Note: Connect doesn’t notify me about comments; if you have further questions, please feel free to e-mail me.

James McNellis
Visual C++ Libraries
Posted by Microsoft on 9/20/2012 at 6:53 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 9/20/2012 at 9:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(