This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/16410] New: showmanyc() fails on large files


__basic_file<char>::showmanyc() inappropriately returns 0 when [2**31,2**32)
bytes are available: FIONREAD chops off the high-order bits and yields a
negative value, poll's success just allows the fstat test to proceed, and the
fstat test itself fails with EOVERFLOW because it always uses regular 32-bit
fstat rather than calling fstat64 if _GLIBCXX_USE_LFS is defined.  This also
makes readsome() ineffective.

-- 
           Summary: showmanyc() fails on large files
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: amu at alum dot mit dot edu
                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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]