Package: src:openbsc Version: 1.0.0-2 Severity: important Tags: sid buster cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -g -O3 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Werror=implicit -Werror=maybe-uninitialized -Werror=memset-transposed-args -Werror=null-dereference -Werror=sizeof-array-argument -Werror=sizeof-pointer-memaccess -c -o bsc_subscriber.o bsc_subscriber.c bsc_subscriber.c: In function ‘bsc_subscr_find_or_create_by_tmsi’: bsc_subscriber.c:106:13: error: potential null pointer dereference [-Werror=null-dereference] bsub->tmsi = tmsi; ~~~~~~~~~~~^~~~~~ cc1: some warnings being treated as errors Makefile:513: recipe for target 'bsc_subscriber.o' failed make[4]: *** [bsc_subscriber.o] Error 1
apparently the call to bsc_subscr_alloc get inlined and then sees that bsub might be NULL in the alloc error case.