From: snowball3 AT bigfoot DOT com (Mark E.) Newsgroups: comp.os.msdos.djgpp Subject: Re: Bug: file left open in _check_v2_prog() Date: Thu, 09 Sep 1999 03:41:25 GMT Organization: Snowball's Web Message-ID: <37d72bce.1864177@news3.ibm.net> References: <19990908 DOT 2027 DOT 13831snz AT roborat DOT demon DOT co DOT uk> X-Newsreader: Forte Agent 1.5/32.452 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.37.91.25 X-Trace: 9 Sep 1999 03:41:10 GMT, 129.37.91.25 Lines: 26 X-Complaints-To: abuse AT prserv DOT net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com dave AT roborat DOT demon DOT co DOT uk (Dave Scott) wrote: >I think I've found a bug in the libc '_check_v2_prog' function >(in the file src\libc\dos\process\chkv2prg.c from DJLSR202.ZIP) > [snip] >However in between there are several places (I count 10) where the >function can return *without closing* the 'pf' file handle... >For example :- > ... > if (read(pf, header, sizeof(header)) != sizeof(header)) > return &type; > ... [snip] Hi Dave, No need for a patch. This bug has been corrected in the DJGPP 2.03 alpha. Mark -- Mark E.: snowball3 AT bigfoot DOT com http://snowball.frogspace.net/