Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 5698] Potential access violation when writing to LANalyzer

Date: Thu, 17 Feb 2011 07:15:00 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5698

--- Comment #1 from Robert Bullen <robert@xxxxxxxxxxxxxx> 2011-02-17 07:14:57 PST ---
I should've mentioned that the access violation does not occur inside the call
to localtime. In all likelihood localtime will successfully read a 64-bit
value, although 32-bits of it are overrun/misalignment garbage. That 64-bit
garbage value might not be a valid time_t value, in which case localtime will
return NULL. When that NULL pointer is dereferenced later, that is when the
access violation occurs.

So at best, an incorrect struct tm is return. At worst, an access violation is
incurred.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.