🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.lib.bug
Article #142

Bug in streambuf.cc of libg++.a version 1.36

#142
From: Edward K. Lee
Date: Sat, 07 Oct 1989 02:56
20 lines
1112 bytes
In function 'int Filebuf::underflow()' of file streambuff.cc, the first
assignment to 'eptr' which reads:

    eptr = base + Fp->fp->_bufsize;

should be:

    eptr = base + Fp->fp->_cnt+1;

The supplied test programs tended to hang before I made this change.

Misc. Questions/Comments:
Is it really necessary to directly access the members of the FILE structure?
(I'm running on Sprite which uses a different FILE structure than unix,
requiring me to manually change all such references.)

Has anyone gotten gdb 3.2 to run properly?
In particular, I can't get 'info method' to work at all.

Ed
Technical Details
Message-ID: <31773@ucbvax.BERKELEY.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!ernie.Berkeley.EDU!eklee

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!ernie.Berkeley.EDU!eklee
From: eklee@ernie.Berkeley.EDU (Edward K. Lee)
Newsgroups: gnu.g++.lib.bug
Subject: Bug in streambuf.cc of libg++.a version 1.36
Message-ID: <31773@ucbvax.BERKELEY.EDU>
Date: 7 Oct 89 02:56:04 GMT
Sender: usenet@ucbvax.BERKELEY.EDU
Reply-To: eklee@ernie.Berkeley.EDU.UUCP (Edward K. Lee)
Organization: University of California, Berkeley
Lines: 20