cppcheck/pyflakes results for osmocom-bb
Paul Wise
pabs at debian.org
Mon Oct 1 01:56:39 CEST 2012
On Sun, Sep 30, 2012 at 8:12 PM, Holger Hans Peter Freyther wrote:
> On Sat, Sep 29, 2012 at 07:20:15PM +0800, Paul Wise wrote:
>> [src/target/firmware/apps/chainload/main.c:39]: (error) Possible null pointer dereference: entry
>
> that is actually the point of the method. :)
Hmmm, should I file a bug on cppcheck about this? I guess jumping to
address zero is something rarely done though so probably not.
>> [src/host/layer23/src/common/main.c:146]: (error) Possible null pointer dereference: app_opp
>
> the tool is wrong here. app_opp == NULL iff app_len == 0 (or it should be).
Hmm, probably not possible for cppcheck to deduce that since app_opp
is set in another file.
--
bye,
pabs
http://wiki.debian.org/PaulWise
More information about the baseband-devel
mailing list