This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/65131] Integer overflow in .size() for std::vector
- 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: Fri, 20 Feb 2015 09:30:20 +0000
- Subject: [Bug libstdc++/65131] Integer overflow in .size() for std::vector
- Auto-submitted: auto-generated
- References: <bug-65131-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65131
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |normal
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
And you can't actually allocate 2^64 bytes of memory on x86_64 either.
In practice this doesn't really matter, noone uses max_size() this way.