🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.4bsd
Article #1633

bug in RCS on Suns running Rev 3.0

#1633
From: Tom Kessler
Date: Mon, 11 Aug 1986 18:18
28 lines
1409 bytes
I don't know whether this belongs right here or has been reported yet but
rdiff (part of RCS) dumps core when compiled on suns running revision
3.0 of Sun's software do memory allocation problems.  I believe we have
release 3 of RCS. Everything ran fine under Sun's revision 1.2 but when
we upgraded to 3.0 rdiff dumped core.  The following fix to the file diff.c
seemed to fix things.
--Tom Kessler

*** diff.c      Mon Aug 11 13:40:44 1986
--- diff.c.ORIG Thu Dec 19 15:17:18 1985
***************
*** 193,198
  {
        register char *q;
        char *realloc();
        dummy = malloc(1);
        q = realloc(p, (unsigned)n);
        if(q==NULL)

--- 193,200 -----
  {
        register char *q;
        char *realloc();
+       free(p);
+       free(dummy);
        dummy = malloc(1);
        q = realloc(p, (unsigned)n);
        if(q==NULL)
Technical Details
Message-ID: <110@ur-laser.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rochester!ur-laser!tomk

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rochester!ur-laser!tomk
From: tomk@ur-laser.UUCP (Tom Kessler)
Newsgroups: net.bugs.4bsd
Subject: bug in RCS on Suns running Rev 3.0
Message-ID: <110@ur-laser.UUCP>
Date: Mon, 11-Aug-86 14:18:04 EDT
Article-I.D.: ur-laser.110
Posted: Mon Aug 11 14:18:04 1986
Date-Received: Tue, 12-Aug-86 15:30:11 EDT
Reply-To: tomk@ur-laser.UUCP (Tom Kessler)
Organization: U. of Rochester, Lab for Laser Energetics.
Lines: 28
Keywords: RCS, Sun, Rev3.0