🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.text
Article #744

Re: DWB tbl bug!! HELP

#744
From: Cameron Davidson
Date: Wed, 05 Feb 1986 04:15
10 lines
1075 bytes
Well, the change I made worked with my first test file but bombed out
when I compiled without -g. The real bug is more obvious, however.
The offending line was actually the next one: incrementing the pointer
returned by calloc and then later trying to call cfree() with the incremented
value is guaranteed to not do what you want (erratically).

The line in freearr() which reads:
	cfree(sep);
should be:
	cfree(--sep);
Technical Details
Message-ID: <122@mm730.uq.OZ>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!petrus!scherzo!allegra!mit-eddie!think!harvard!seismo!munnari!basser!uqcspe!mm730!probe
References: <98@calgary.UUCP> <121@mm730.uq.OZ>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!petrus!scherzo!allegra!mit-eddie!think!harvard!seismo!munnari!basser!uqcspe!mm730!probe
From: probe@mm730.uq.OZ (Cameron Davidson)
Newsgroups: net.text,net.bugs
Subject: Re: DWB tbl bug!! HELP
Message-ID: <122@mm730.uq.OZ>
Date: Tue, 4-Feb-86 23:15:46 EST
Article-I.D.: mm730.122
Posted: Tue Feb  4 23:15:46 1986
Date-Received: Sun, 9-Feb-86 07:49:57 EST
References: <98@calgary.UUCP> <121@mm730.uq.OZ>
Distribution: net
Organization: Mining&Metal. Eng; Univ of Qld; Brisbane; Aus
Lines: 10
Summary: OOPS - the real fix is...