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

            Bug ID: 68197
           Summary: negative index to ios_base::iword lead to
                    unpredictable result
           Product: gcc
           Version: 5.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mickael.guene at st dot com
  Target Milestone: ---

Created attachment 36639
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36639&action=edit
segfault on my machine

Attach test program will crash since iword(-1000000) return invalid memory
address.
 In that case it should return a valid long& intialized to 0.

 Inline iword and pword should check negative value.

Reply via email to