[Bug libstdc++/68197] negative index to ios_base::iword lead to unpredictable result

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 2 19:07:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68197

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |9.0

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
GCC 9 will set badbit in the stream state on invalid indices.


More information about the Gcc-bugs mailing list