Article View: net.bugs
Article #177Bug in System V make(1) - (nf)
From: bobvan
Date: Wed, 01 Feb 1984 03:56
Date: Wed, 01 Feb 1984 03:56
14 lines
1244 bytes
1244 bytes
#N:ccvaxa:5200001:000:748
ccvaxa!bobvan Jul 29 11:37:00 1983
I've just found a glaring, tho not terribly serious bug in System V make(1).
In the file misc.c, the return value from calloc is tested on lines 849 and
858. Both times, the return value is tested for falure by comparing it to -1.
The malloc(3) manpage states that the failure return value from calloc() is 0.
Both bugs are in the routine setenv(). They cause setenv() to address fault
on a bad pointer, leaving a core file behind (from the child forked by make).
This bug should be agrivated only if make was nearly out of core already
and trying to allocate the environment for the child pushed it over the edge.
This showed up as an exit code of 132 from the child.
Bob Van Valzah uiucdcs!ccvaxa!bobvan Compion Corp. (217) 384-8587
Technical Details
Message-ID:
<5287@uiucdcs.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!inuxc!pur-ee!uiucdcs!ccvaxa!bobvanShow 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!mhuxl!ihnp4!inuxc!pur-ee!uiucdcs!ccvaxa!bobvan From: bobvan@ccvaxa.UUCP Newsgroups: net.bugs Subject: Bug in System V make(1) - (nf) Message-ID: <5287@uiucdcs.UUCP> Date: Tue, 31-Jan-84 22:56:26 EST Article-I.D.: uiucdcs.5287 Posted: Tue Jan 31 22:56:26 1984 Date-Received: Tue, 7-Feb-84 08:41:11 EST Lines: 14