Wireshark mailing list archives

Re: DND crash through all versions?


From: Jakub Zawadzki <darkjames-ws () darkjames pl>
Date: Tue, 4 Sep 2012 00:14:20 +0200

On Mon, Sep 03, 2012 at 11:50:25PM +0200, Jaap Keuter wrote:
Anyone knows what strstr() does with a NULL for a haystack? As far as I can tell 
it's unspecified.

On Linux it crashes:

(gdb) call strstr(0, "test") 
Program received signal SIGSEGV, Segmentation fault.

___________________________________________________________________________
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: