Dealing with output of clang --analyze

Holger Freyther zecke@selfish.org
Mon Mar 15 00:48:00 GMT 2010


On Sunday 14 March 2010 17:43:49 Joel Brobecker wrote:

> > In the case where value_type(called_method) returns NULL, the
> > if is not executed and the second TYPE_TARGET_TYPE will do a
> > NULL pointer dereference. There are at least 66 of these cases
> > in the source. Is it worth addressing them?
> 
> In the particular example you chose, I do not think that there is
> a problem, because called_method should always have a type.  Not
> sure about the others, we'd have to look at them individually,
> I guess.

So we could remove the type && from the if? What would be the preferred way to 
see the other cases of warnings? Posting it on the mailinglist? sticking it in 
the bugtracker? creating a website with the information?

regards
	holger



More information about the Gdb mailing list