This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/12206] New: Segmentation fault in basic_filebuf::seekoff
- From: "peturr02 at ru dot is" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Sep 2003 09:17:02 -0000
- Subject: [Bug libstdc++/12206] New: Segmentation fault in basic_filebuf::seekoff
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12206
Summary: Segmentation fault in basic_filebuf::seekoff
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
basic_filebuf::imbue(loc) only modifies _M_codecvt if the correct codecvt
facet is found in loc; otherwise _M_codecvt is left pointing at the
codecvt facet from the previous locale, which may no longer be valid.
If basic_filebuf::seekoff is called when _M_codecvt has become invalid,
the program segfaults.