On Apr 3, 2009, at 10:32 AM, [email protected] wrote:
> Don't crash on linux:
> strlen(NULL) isn't an acceptable call.
I'd be somewhat surprised if there's a platform out there on which we
run where strlen(NULL) *doesn't* crash; on most if not all platforms
on which we run:
1) NULL has all of its bits zero;
2) at least one page of address space starting at 0 is deliberately
missing (to catch null-pointer dereferences);
and I suspect most if not all implementations of strlen() don't
explicitly check for a null argument.
___________________________________________________________________________
Sent via: Wireshark-dev mailing list <[email protected]>
Archives: http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:[email protected]?subject=unsubscribe