NULL ptr dereferences found with Calysto static checker

2007-06-06 Thread Domagoj Babic

Hi,

I've ran my static checker Calysto ( http://www.calysto.org/ ) on wget v1.10.2,
and Calysto reported a possible NULL ptr dereference at:

+ wget-1.10.2/src/utils.c:287 // localtime can return NULL

I'd appreciate if you could let me know whether you consider this to be
a real bug or a false positive (and why).

Kind regards,

--
   Domagoj Babic

   http://www.domagoj.info/


Re: NULL ptr dereferences found with Calysto static checker

2007-06-06 Thread Steven M. Schweda
From: Domagoj Babic

 + wget-1.10.2/src/utils.c:287 // localtime can return NULL

   I'd say that it's sloppy code, but the probability of seeing a
failure in the real world, while not zero, must be vanishingly small. 



   Steven M. Schweda   [EMAIL PROTECTED]
   382 South Warwick Street(+1) 651-699-9818
   Saint Paul  MN  55105-2547