cppcheck/pyflakes results for osmocom-bb

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/baseband-devel@lists.osmocom.org/.

Paul Wise pabs at debian.org
Sun Sep 30 23:56:39 UTC 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