Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jan 1997 11:22:41 +0100
From:      Eivind Eklund <eivind@dimaga.com>
To:        joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
Cc:        hackers@freebsd.org
Subject:   Re: number of lines in a file, given its size
Message-ID:  <3.0.32.19970113112240.00a38800@dimaga.com>

next in thread | raw e-mail | index | archive | help
At 11:23 PM 1/12/97 +0100, J Wunsch wrote:
>As Terry Lambert wrote:
>
>> I think erroring out to "okshells" on the malloc failure is a bit
>> bogus...
>
>malloc errors are bogus, too. :)  The hell will break afterwards
>anyway, so it doesn't matter whether it returns `okshells' or
>something else.

Race condition and possibly (very minor) security problem - I would have it
print "No memory" and exit(EXIT_FAILURE);

No security hole too small etc...
Eivind Eklund / perhaps@yes.no / http://maybe.yes.no/perhaps/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.32.19970113112240.00a38800>