Wireshark mailing list archives
Re: strlen() and NULL pointer checks
From: Guy Harris <guy () alum mit edu>
Date: Mon, 16 May 2011 15:23:33 -0700
On May 16, 2011, at 2:53 PM, Jeff Morriss wrote:
But it is encouraging as they indicate that Solaris is the only "significant" printf that is "good enough" except for this NULL pointer stuff. Well, except for those poor sods running "insignificant" printfs.
To be fair, what Owen said was "Solaris is *probably* the only significant example of a printf that is good enough otherwise but doesn't catch null." (emphasis mine) Given that the bug was for Win32, he probably meant "the only significant example of a UN*X printf"; the UN*X printfs I know of do: glibc - (null) *BSD libc (including OS X and iOS) - (null) Solaris - crash My guess is that at least some of the other commercial UN*Xes also crash, as I think substituting (null) was either a 4.4-Lite-vintage BSDism or a glibcism. At this point, "the other commercial UN*Xes" probably means "AIX and HP-UX" (well, and the SCO UN*Xes, but I suspect the free software community is rather uninterested in them, given the whole SCO vs. Linux noise); I don't think any others are actively being developed. I don't know whether either of those are considered "good enough otherwise", which I assume means "we don't just replace it with ours". ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- strlen() and NULL pointer checks Jeff Morriss (May 16)
- Re: strlen() and NULL pointer checks Chris Maynard (May 16)
- Re: strlen() and NULL pointer checks Gerald Combs (May 16)
- Re: strlen() and NULL pointer checks Jeff Morriss (May 16)
- Re: strlen() and NULL pointer checks Jakub Zawadzki (May 16)
- Re: strlen() and NULL pointer checks Jeff Morriss (May 16)
- Re: strlen() and NULL pointer checks Guy Harris (May 16)
- Re: strlen() and NULL pointer checks Jeff Morriss (May 17)
- Re: strlen() and NULL pointer checks Jeff Morriss (May 16)
- Re: strlen() and NULL pointer checks Chris Maynard (May 16)