public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/13217] New: basic_filebuf::underflow doesn't deal gracefully with read errors
@ 2003-11-28 15:19 paolo at gcc dot gnu dot org
2003-11-28 15:19 ` [Bug libstdc++/13217] " paolo at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-11-28 15:19 UTC (permalink / raw)
To: gcc-bugs
In the always_noconv case, if _M_file.xsgetn returns -1 the situations is pretty
good, but the exception raised has a misleading what of "invalid byte sequence in
file". In the general case, the read error condition is not dealt with properly
and no meaningful exception is raised, everything can happen at run time...
--
Summary: basic_filebuf::underflow doesn't deal gracefully with
read errors
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: paolo at gcc dot gnu dot org
ReportedBy: paolo at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: Any
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13217
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/13217] basic_filebuf::underflow doesn't deal gracefully with read errors
2003-11-28 15:19 [Bug libstdc++/13217] New: basic_filebuf::underflow doesn't deal gracefully with read errors paolo at gcc dot gnu dot org
@ 2003-11-28 15:19 ` paolo at gcc dot gnu dot org
2003-12-10 20:05 ` cvs-commit at gcc dot gnu dot org
2003-12-10 20:06 ` paolo at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-11-28 15:19 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-11-28 15:19:38
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13217
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/13217] basic_filebuf::underflow doesn't deal gracefully with read errors
2003-11-28 15:19 [Bug libstdc++/13217] New: basic_filebuf::underflow doesn't deal gracefully with read errors paolo at gcc dot gnu dot org
2003-11-28 15:19 ` [Bug libstdc++/13217] " paolo at gcc dot gnu dot org
@ 2003-12-10 20:05 ` cvs-commit at gcc dot gnu dot org
2003-12-10 20:06 ` paolo at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-12-10 20:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-12-10 20:05 -------
Subject: Bug 13217
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: paolo@gcc.gnu.org 2003-12-10 20:05:00
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/include/bits: fstream.tcc
Log message:
2003-12-10 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/13217
* include/bits/fstream.tcc (underflow): Deal gracefully with
read errors: throw ios_base::failure.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2149&r2=1.2150
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/fstream.tcc.diff?cvsroot=gcc&r1=1.114&r2=1.115
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13217
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/13217] basic_filebuf::underflow doesn't deal gracefully with read errors
2003-11-28 15:19 [Bug libstdc++/13217] New: basic_filebuf::underflow doesn't deal gracefully with read errors paolo at gcc dot gnu dot org
2003-11-28 15:19 ` [Bug libstdc++/13217] " paolo at gcc dot gnu dot org
2003-12-10 20:05 ` cvs-commit at gcc dot gnu dot org
@ 2003-12-10 20:06 ` paolo at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-12-10 20:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From paolo at gcc dot gnu dot org 2003-12-10 20:06 -------
Fixed for 3.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13217
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-12-10 20:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-28 15:19 [Bug libstdc++/13217] New: basic_filebuf::underflow doesn't deal gracefully with read errors paolo at gcc dot gnu dot org
2003-11-28 15:19 ` [Bug libstdc++/13217] " paolo at gcc dot gnu dot org
2003-12-10 20:05 ` cvs-commit at gcc dot gnu dot org
2003-12-10 20:06 ` paolo at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).