[LLVMbugs] [Bug 20471] New: vector<bool>::resize(N) segfaults for N > 2^32-2^6
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Jul 27 23:18:27 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20471
Bug ID: 20471
Summary: vector<bool>::resize(N) segfaults for N > 2^32-2^6
Product: libc++
Version: 3.4
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: sharker81 at gmail.com
CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
Classification: Unclassified
Compiler details:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.3.0
Thread model: posix
The following code segfaults when executed:
#include <vector>
int main () {
std::vector<bool> data;
data . resize (4294967233); // == 2^32 - 2^6 + 1
return 0;
}
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140728/185fdc40/attachment.html>
More information about the llvm-bugs
mailing list