[Bug libstdc++/12232] New: Incorrect handling of openmode argument in filebuf::seekoff and seekpos

peturr02 at ru dot is gcc-bugzilla@gcc.gnu.org
Wed Sep 10 07:23:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12232

           Summary: Incorrect handling of openmode argument in
                    filebuf::seekoff and seekpos
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: peturr02 at ru dot is
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

According to 27.8.1.4 p11 - 13 (for seekoff) and the resolution of DR 171
(for seekpos), both functions should ignore the last argument (of type
openmode).

In the current implementation, the openmode argument is checked against
_M_mode, and the functions fail if they don't match.



More information about the Gcc-bugs mailing list