Re: Calysto v1.5 reports on ssh v4.6p1

This is a discussion on Re: Calysto v1.5 reports on ssh v4.6p1 within the OpenSSH Development forums, part of the Networking and Network Related category; On Sun, Aug 12, 2007 at 12:47:13PM -0700, Domagoj Babic wrote: > > > @58 orange (INCONSISTENT USE) ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-12-2007
Peter Stuge
 
Posts: n/a
Default Re: Calysto v1.5 reports on ssh v4.6p1

On Sun, Aug 12, 2007 at 12:47:13PM -0700, Domagoj Babic wrote:
> > > @58 orange (INCONSISTENT USE) Possible null dereference of
> > > variable gparent. This variable is checked for Null at lines:
> > > 58 @monitor_mm.c
> > > @Inconsistency error

>
> Could anyone confirm that this is either a bug or a false positive?


Wow, this is a bit messy.

monitor_mm.c:58 has the RB_GENERATE() macro which expands to a 270
line long define in openbsd-compat/sys-tree.h, which in turn uses
macros that expand to even more lines. All this is however treated as
one line of source code to not affect the line numbers of the
original source file. (for debugging)

It would take a bit of work - turn those macros into code
(manually(!) or with gcc -E or cpp) and then re-run the static
checker, so that it actually gives some useful information.

Trying to proof 270 lines of code on a single line is not time well
spent for a human.

I could have a look at the code if those macros were made into C
source and the checker reported more meaningful line numbers. Please
include the C source you checked as well then.


//Peter
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/li...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 05:28 AM.


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