This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/16410] New: showmanyc() fails on large files
- From: "amu at alum dot mit dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2004 16:05:44 -0000
- Subject: [Bug libstdc++/16410] New: showmanyc() fails on large files
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
__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