Wireshark-commits: [Wireshark-commits] rev 21759: /trunk/epan/ /trunk/epan/: to_str.c

Date: Mon, 14 May 2007 13:47:05 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=21759

User: ulfl
Date: 2007/05/14 01:47 PM

Log:
 fix a bug found while fuzz testing the opcua dissector:
 MSVC 2005 crashes, if localtime is called with very large numbers (in this case 218939827321) - probably due to changes that time_t is now 64bits long as default
 
 limit the number given to localtime to a reasonable value
 
 while this isn't a nice fix, I don't see a better way to fix it :-(

Directory: /trunk/epan/
  Changes    Path          Action
  +10 -1     to_str.c      Modified