Article View: comp.windows.x
Article #37228yet another bug in xfig 2.0
From: Brian V. Smith
Date: Fri, 23 Feb 1990 00:25
Date: Fri, 23 Feb 1990 00:25
31 lines
1436 bytes
1436 bytes
I will wait for any more bugs to be reported before posting
a new "official" patch (patch 2), but in the meantime this
one is catching some people.
Basically, curve() which draws circles and ellipses was re-using
previously freed memory.
Thanks go to Bill Cheng (william@cs.ucla.edu) who found the bug.
Here is the context diff:
*** curve.c.orig Tue Jan 16 17:21:04 1990
--- curve.c Thu Feb 22 15:58:24 1990
***************
*** 117,121
}
pw_lines(window, points, npoints, val? PAINT: ERASE,
thick, area_fill);
- free(points);
}
--- 117,120 -----
}
pw_lines(window, points, npoints, val? PAINT: ERASE,
thick, area_fill);
}
_____________________________________
Brian V. Smith (bvsmith@lbl.gov)
Lawrence Berkeley Laboratory
I don't speak for LBL, these non-opinions are all mine.
Technical Details
Message-ID:
<4924@helios.ee.lbl.gov>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!helios.ee.lbl.gov!epb2.lbl.gov!envbvsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!helios.ee.lbl.gov!epb2.lbl.gov!envbvs From: envbvs@epb2.lbl.gov (Brian V. Smith) Newsgroups: comp.windows.x Subject: yet another bug in xfig 2.0 Keywords: core dumps when drawing circles/ellipses Message-ID: <4924@helios.ee.lbl.gov> Date: 23 Feb 90 00:25:53 GMT Sender: usenet@helios.ee.lbl.gov Reply-To: envbvs@epb2.lbl.gov (Brian V. Smith) Organization: lbl Lines: 31 X-Local-Date: 22 Feb 90 16:25:53 PST