Re: NULL ptr dereferences found with Calysto static checker

This is a discussion on Re: NULL ptr dereferences found with Calysto static checker within the OpenSSH Development forums, part of the Networking and Network Related category; Hi, On 6/21/07, Gert Doering <gert@greenie.muc.de> wrote: > "The return value is ...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-21-2007
Domagoj Babic
 
Posts: n/a
Default Re: NULL ptr dereferences found with Calysto static checker

Hi,

On 6/21/07, Gert Doering <gert@greenie.muc.de> wrote:
> "The return value is the null pointer if time cannot be represented as a
> broken-down time; typically this is because the year cannot fit into an int."
>
> - so, OpenSSH will break in the year 4294967297. Damn.


It says 'typically', so, there are probably also other conditions under which
that can happen. One way or another, it shouldn't be dereferenced directly
without checking. Most high-quality open source projects I've analyzed so
far check the result of localtime/gmtime. However, if community strongly
feels that this should not be reported as a bug, it's really trivial to tell
that to Calysto.

Regards,

--
Domagoj Babic

http://www.domagoj.info/
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/lis...enssh-unix-dev
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:41 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0