[Bug libstdc++/65131] Integer overflow in .size() for std::vector
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 20 09:30:00 GMT 2015
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.
More information about the Gcc-bugs
mailing list