references to dereferenced null pointers
Karl Heuer
karl at haddock.ima.isc.com
Mon Mar 19 10:06:48 AEST 1990
In article <1990Mar15.184903.3397 at hcr.uucp> john at troch.UUCP (John R. MacMillan) writes:
>Karl Heuer <karl at haddock.ima.isc.com> writes:
>|The only "dangerous" context (other than hacking with unions and such) is
>|when a null pointer constant is being passed as an argument to a function.
>
>``Zeroing out'' pointers with memset, bzero, or calloc is another
Right. I had a hunch I was overlooking something!
Karl W. Z. Heuer (karl at ima.ima.isc.com or harvard!ima!karl), The Walking Lint
More information about the Comp.lang.c
mailing list