This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/38476] SIGSEGV on istream::read() in unbuffered mode
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Dec 2008 09:21:05 -0000
- Subject: [Bug libstdc++/38476] SIGSEGV on istream::read() in unbuffered mode
- References: <bug-38476-1186@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from paolo dot carlini at oracle dot com 2008-12-27 09:21 -------
To clarify: I don't see anything in the Standard forbidding the use of
rdbuf()->sgetn in the implementation of istream::read. Actually, I would argue
is the natural choice for carrying out the core work. Then, however, everything
bis equivalent per the Standard to a series of sbumpc and uflow (not underflow)
must be provided by the user.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38476