Error: SHELLCHECK_WARNING (CWE-477): [#def1] /usr/sbin/unbound-control-setup:144:27: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. # 142| [ -f server.cnf ] || fatal "cannot create openssl configuration" # 143| # 144|-> if [ ! -f "$SVR_BASE.pem" -o $RECREATE -eq 1 ]; then # 145| openssl req \ # 146| -new -x509 \ Error: SHELLCHECK_WARNING (CWE-477): [#def2] /usr/sbin/unbound-control-setup:180:27: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. # 178| [ -f client.cnf ] || fatal "cannot create openssl configuration" # 179| # 180|-> if [ ! -f "$CTL_BASE.pem" -o $RECREATE -eq 1 ]; then # 181| openssl x509 \ # 182| -addtrust serverAuth \ Error: SHELLCHECK_WARNING (CWE-156): [#def3] /usr/share/munin/plugins/unbound:145:36: warning[SC2046]: Quote this to prevent word splitting. # 143| fi # 144| if test $i -gt 1500; then # 145|-> echo "error locking $lock" "=" `cat $lock` # 146| rm -f $lock # 147| exit 1 Error: SHELLCHECK_WARNING (CWE-156): [#def4] /usr/share/munin/plugins/unbound:158:20: warning[SC2046]: Quote this to prevent word splitting. # 156| get_value "time.now" # 157| value="`echo $value | sed -e 's/\..*$//'`" # 158|-> if test $now -lt `expr $value + $lee`; then # 159| rm -f $lock # 160| return Error: SHELLCHECK_WARNING (CWE-156): [#def5] /usr/share/munin/plugins/unbound:177:15: warning[SC2046]: Quote this to prevent word splitting. # 175| exit 1 # 176| fi # 177|-> if test ! -d `dirname $state`; then # 178| echo no "($state directory does not exist)" # 179| exit 1 Error: SHELLCHECK_WARNING (CWE-156): [#def6] /usr/share/munin/plugins/unbound:405:19: warning[SC2046]: Quote this to prevent word splitting. # 403| mn=`echo $1 | sed $ABBREV | tr . _` # 404| get_value $1 # 405|-> echo "$mn.value" `echo scale=6';' $value / $elapsed | bc ` # 406| } # 407| Error: SHELLCHECK_WARNING (CWE-156): [#def7] /usr/share/munin/plugins/unbound:412:19: warning[SC2046]: Quote this to prevent word splitting. # 410| mn=`echo $1 | sed $ABBREV | tr . _` # 411| value="`echo $2 | sed -e 's/^.*=//'`" # 412|-> echo "$mn.value" `echo scale=6';' $value / $elapsed | bc ` # 413| } # 414| Error: SHELLCHECK_WARNING (CWE-149): [#def8] /usr/share/munin/plugins/unbound:429:14: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them. # 427| total.num.cachehits total.num.prefetch num.query.tcp \ # 428| num.query.ipv6 unwanted.queries unwanted.replies; do # 429|-> if grep "^"$x"=" $state >/dev/null 2>&1; then # 430| print_qps $x # 431| fi Error: SHELLCHECK_WARNING (CWE-156): [#def9] /usr/share/munin/plugins/unbound:494:20: warning[SC2046]: Quote this to prevent word splitting. # 492| histogram) # 493| get_value total.num.cachehits # 494|-> echo hcache.value `echo scale=6';' $value / $elapsed | bc ` # 495| r=0 # 496| for x in histogram.000000.000000.to.000000.000001 \ Error: SHELLCHECK_WARNING (CWE-156): [#def10] /usr/share/munin/plugins/unbound:516:19: warning[SC2046]: Quote this to prevent word splitting. # 514| r=`expr $r + $value` # 515| done # 516|-> echo h64ms.value `echo scale=6';' $r / $elapsed | bc ` # 517| get_value histogram.000000.065536.to.000000.131072 # 518| echo h128ms.value `echo scale=6';' $value / $elapsed | bc ` Error: SHELLCHECK_WARNING (CWE-156): [#def11] /usr/share/munin/plugins/unbound:518:20: warning[SC2046]: Quote this to prevent word splitting. # 516| echo h64ms.value `echo scale=6';' $r / $elapsed | bc ` # 517| get_value histogram.000000.065536.to.000000.131072 # 518|-> echo h128ms.value `echo scale=6';' $value / $elapsed | bc ` # 519| get_value histogram.000000.131072.to.000000.262144 # 520| echo h256ms.value `echo scale=6';' $value / $elapsed | bc ` Error: SHELLCHECK_WARNING (CWE-156): [#def12] /usr/share/munin/plugins/unbound:520:20: warning[SC2046]: Quote this to prevent word splitting. # 518| echo h128ms.value `echo scale=6';' $value / $elapsed | bc ` # 519| get_value histogram.000000.131072.to.000000.262144 # 520|-> echo h256ms.value `echo scale=6';' $value / $elapsed | bc ` # 521| get_value histogram.000000.262144.to.000000.524288 # 522| echo h512ms.value `echo scale=6';' $value / $elapsed | bc ` Error: SHELLCHECK_WARNING (CWE-156): [#def13] /usr/share/munin/plugins/unbound:522:20: warning[SC2046]: Quote this to prevent word splitting. # 520| echo h256ms.value `echo scale=6';' $value / $elapsed | bc ` # 521| get_value histogram.000000.262144.to.000000.524288 # 522|-> echo h512ms.value `echo scale=6';' $value / $elapsed | bc ` # 523| get_value histogram.000000.524288.to.000001.000000 # 524| echo h1s.value `echo scale=6';' $value / $elapsed | bc ` Error: SHELLCHECK_WARNING (CWE-156): [#def14] /usr/share/munin/plugins/unbound:524:17: warning[SC2046]: Quote this to prevent word splitting. # 522| echo h512ms.value `echo scale=6';' $value / $elapsed | bc ` # 523| get_value histogram.000000.524288.to.000001.000000 # 524|-> echo h1s.value `echo scale=6';' $value / $elapsed | bc ` # 525| get_value histogram.000001.000000.to.000002.000000 # 526| echo h2s.value `echo scale=6';' $value / $elapsed | bc ` Error: SHELLCHECK_WARNING (CWE-156): [#def15] /usr/share/munin/plugins/unbound:526:17: warning[SC2046]: Quote this to prevent word splitting. # 524| echo h1s.value `echo scale=6';' $value / $elapsed | bc ` # 525| get_value histogram.000001.000000.to.000002.000000 # 526|-> echo h2s.value `echo scale=6';' $value / $elapsed | bc ` # 527| get_value histogram.000002.000000.to.000004.000000 # 528| echo h4s.value `echo scale=6';' $value / $elapsed | bc ` Error: SHELLCHECK_WARNING (CWE-156): [#def16] /usr/share/munin/plugins/unbound:528:17: warning[SC2046]: Quote this to prevent word splitting. # 526| echo h2s.value `echo scale=6';' $value / $elapsed | bc ` # 527| get_value histogram.000002.000000.to.000004.000000 # 528|-> echo h4s.value `echo scale=6';' $value / $elapsed | bc ` # 529| get_value histogram.000004.000000.to.000008.000000 # 530| echo h8s.value `echo scale=6';' $value / $elapsed | bc ` Error: SHELLCHECK_WARNING (CWE-156): [#def17] /usr/share/munin/plugins/unbound:530:17: warning[SC2046]: Quote this to prevent word splitting. # 528| echo h4s.value `echo scale=6';' $value / $elapsed | bc ` # 529| get_value histogram.000004.000000.to.000008.000000 # 530|-> echo h8s.value `echo scale=6';' $value / $elapsed | bc ` # 531| r=0 # 532| for x in histogram.000008.000000.to.000016.000000 \ Error: SHELLCHECK_WARNING (CWE-156): [#def18] /usr/share/munin/plugins/unbound:551:18: warning[SC2046]: Quote this to prevent word splitting. # 549| r=`expr $r + $value` # 550| done # 551|-> echo h16s.value `echo scale=6';' $r / $elapsed | bc ` # 552| ;; # 553| esac Error: CPPCHECK_WARNING (CWE-590): [#def19] unbound-1.22.0-build/unbound-1.22.0/libunbound/libunbound.c:375: error[autovarInvalidDeallocation]: Deallocation of an auto-variable (.) results in undefined behaviour. # 373| a->super = &ctx->superalloc; # 374| alloc_clear(a); # 375|-> free(a); # 376| a = na; # 377| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def20] unbound-1.22.0-build/unbound-1.22.0/libunbound/libworker.c: scope_hint: In function 'libworker_fillup_fg' unbound-1.22.0-build/unbound-1.22.0/libunbound/libworker.c:545:35: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(why_bogus)' # 543| q->res->was_ratelimited = was_ratelimited; # 544| if(why_bogus) # 545|-> q->res->why_bogus = strdup(why_bogus); # 546| if(rcode != 0) { # 547| q->res->rcode = rcode; Error: GCC_ANALYZER_WARNING (CWE-476): [#def21] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_MangledTypeQueryModule' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:648:13: warning[-Wanalyzer-null-dereference]: dereference of NULL 'iter' /usr/include/python3.13/tupleobject.h:39: included_from: Included from here. /usr/include/python3.13/Python.h:88: included_from: Included from here. unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1317:20: note: in expansion of macro 'PyTuple_GET_SIZE' /usr/include/python3.13/Python.h:19: included_from: Included from here. /usr/include/python3.13/cpython/tupleobject.h:22:28: note: in expansion of macro '_PyTuple_CAST' /usr/include/python3.13/cpython/tupleobject.h:23:12: note: in expansion of macro 'Py_SIZE' /usr/include/python3.13/cpython/tupleobject.h:23:12: note: in expansion of macro 'Py_SIZE' /usr/include/python3.13/cpython/tupleobject.h:23:12: note: in expansion of macro 'Py_SIZE' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1317:20: note: in expansion of macro 'PyTuple_GET_SIZE' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11793:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11793:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11793:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:3452:12: note: in expansion of macro 'SWIG_TypeQuery' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:3452:12: note: in expansion of macro 'SWIG_TypeQuery' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:3021:37: note: in expansion of macro 'SWIG_GetModule' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:3021:37: note: in expansion of macro 'SWIG_GetModule' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:3021:37: note: in expansion of macro 'SWIG_GetModule' # 646| swig_module_info *iter = start; # 647| do { # 648|-> if (iter->size) { # 649| size_t l = 0; # 650| size_t r = iter->size - 1; Error: GCC_ANALYZER_WARNING (CWE-126): [#def22] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1179:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12467:15: note: in expansion of macro 'SWIG_InternalNewPointerObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12549:1: note: in expansion of macro 'SWIG_init' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12289:17: note: in expansion of macro 'SWIG_GetModule' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12289:17: note: in expansion of macro 'SWIG_GetModule' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12668:3: note: in expansion of macro 'SWIG_InstallConstants' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:15: note: in expansion of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:930:25: note: in expansion of macro 'Py_INCREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1646:3: note: in expansion of macro 'SWIG_Py_INCREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:15: note: in expansion of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:932:25: note: in expansion of macro 'Py_DECREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12478:9: note: in expansion of macro 'SWIG_Py_DECREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12467:15: note: in expansion of macro 'SWIG_InternalNewPointerObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1179:57: note: read of 8 bytes from after the end of 'swig_const_table' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12467:15: note: in expansion of macro 'SWIG_InternalNewPointerObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1179:57: note: valid subscripts for 'swig_const_table' are '[0]' to '[0]' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12467:15: note: in expansion of macro 'SWIG_InternalNewPointerObj' # 1177| #endif # 1178| # 1179|-> #define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) # 1180| # 1181| #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) Error: GCC_ANALYZER_WARNING (CWE-126): [#def23] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1187:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:15: note: in expansion of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12549:1: note: in expansion of macro 'SWIG_init' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12289:17: note: in expansion of macro 'SWIG_GetModule' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12289:17: note: in expansion of macro 'SWIG_GetModule' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12668:3: note: in expansion of macro 'SWIG_InstallConstants' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:15: note: in expansion of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:930:25: note: in expansion of macro 'Py_INCREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1646:3: note: in expansion of macro 'SWIG_Py_INCREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:15: note: in expansion of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:932:25: note: in expansion of macro 'Py_DECREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12478:9: note: in expansion of macro 'SWIG_Py_DECREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:15: note: in expansion of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1187:57: note: read of 8 bytes from after the end of 'swig_const_table' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:15: note: in expansion of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1187:57: note: valid subscripts for 'swig_const_table' are '[0]' to '[0]' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:15: note: in expansion of macro 'SWIG_NewPackedObj' # 1185| /* for raw packed data */ # 1186| #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) # 1187|-> #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) # 1188| # 1189| /* for class or struct pointers */ Error: GCC_ANALYZER_WARNING (CWE-476): [#def24] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SwigPyClientData_New' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1688:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'data' /usr/include/python3.13/tupleobject.h:27:18: note: in expansion of macro 'PyType_FastSubclass' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1305:8: note: in expansion of macro 'PyTuple_Check' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SwigPyClientData_New' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11690:45: note: in expansion of macro 'SWIG_NewClientData' # 1686| SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); # 1687| /* the klass element */ # 1688|-> data->klass = obj; # 1689| SWIG_Py_INCREF(data->klass); # 1690| /* the newraw method and newargs arguments used to create a new raw instance */ Error: GCC_ANALYZER_WARNING (CWE-401): [#def25] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_new_ub_stats_info' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:2909:6: warning[-Wanalyzer-malloc-leak]: leak of 'result' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11592:15: note: in expansion of macro 'SWIG_NewPointerObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11592:15: note: in expansion of macro 'SWIG_NewPointerObj' # 2907| # 2908| robj = SwigPyObject_New(ptr, type, own); # 2909|-> if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { # 2910| PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); # 2911| SWIG_Py_DECREF(robj); Error: GCC_ANALYZER_WARNING (CWE-476): [#def26] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_server_stats_mem_quic_get' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:10989:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:10984:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:10984:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:10984:10: note: in expansion of macro 'SWIG_ConvertPtr' #10987| } #10988| arg1 = (struct ub_server_stats *)(argp1); #10989|-> result = (long long) ((arg1)->mem_quic); #10990| resultobj = SWIG_From_long_SS_long((long long)(result)); #10991| return resultobj; Error: GCC_ANALYZER_WARNING (CWE-476): [#def27] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_server_stats_qquic_get' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11043:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11038:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11038:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11038:10: note: in expansion of macro 'SWIG_ConvertPtr' #11041| } #11042| arg1 = (struct ub_server_stats *)(argp1); #11043|-> result = (long long) ((arg1)->qquic); #11044| resultobj = SWIG_From_long_SS_long((long long)(result)); #11045| return resultobj; Error: GCC_ANALYZER_WARNING (CWE-476): [#def28] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_stats_info_mesh_num_states_get' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11199:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11194:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11194:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11194:10: note: in expansion of macro 'SWIG_ConvertPtr' #11197| } #11198| arg1 = (struct ub_stats_info *)(argp1); #11199|-> result = (long long) ((arg1)->mesh_num_states); #11200| resultobj = SWIG_From_long_SS_long((long long)(result)); #11201| return resultobj; Error: GCC_ANALYZER_WARNING (CWE-476): [#def29] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_stats_info_mesh_num_reply_states_get' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11253:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11248:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11248:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11248:10: note: in expansion of macro 'SWIG_ConvertPtr' #11251| } #11252| arg1 = (struct ub_stats_info *)(argp1); #11253|-> result = (long long) ((arg1)->mesh_num_reply_states); #11254| resultobj = SWIG_From_long_SS_long((long long)(result)); #11255| return resultobj; Error: GCC_ANALYZER_WARNING (CWE-476): [#def30] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_stats_info_mesh_jostled_get' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11307:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11302:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11302:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11302:10: note: in expansion of macro 'SWIG_ConvertPtr' #11305| } #11306| arg1 = (struct ub_stats_info *)(argp1); #11307|-> result = (long long) ((arg1)->mesh_jostled); #11308| resultobj = SWIG_From_long_SS_long((long long)(result)); #11309| return resultobj; Error: GCC_ANALYZER_WARNING (CWE-476): [#def31] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_stats_info_mesh_dropped_get' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11361:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11356:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11356:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11356:10: note: in expansion of macro 'SWIG_ConvertPtr' #11359| } #11360| arg1 = (struct ub_stats_info *)(argp1); #11361|-> result = (long long) ((arg1)->mesh_dropped); #11362| resultobj = SWIG_From_long_SS_long((long long)(result)); #11363| return resultobj; Error: GCC_ANALYZER_WARNING (CWE-476): [#def32] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_stats_info_mesh_replies_sent_get' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11415:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11410:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11410:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11410:10: note: in expansion of macro 'SWIG_ConvertPtr' #11413| } #11414| arg1 = (struct ub_stats_info *)(argp1); #11415|-> result = (long long) ((arg1)->mesh_replies_sent); #11416| resultobj = SWIG_From_long_SS_long((long long)(result)); #11417| return resultobj; Error: GCC_ANALYZER_WARNING (CWE-476): [#def33] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_stats_info_mesh_replies_sum_wait_sec_get' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11469:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11464:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11464:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11464:10: note: in expansion of macro 'SWIG_ConvertPtr' #11467| } #11468| arg1 = (struct ub_stats_info *)(argp1); #11469|-> result = (long long) ((arg1)->mesh_replies_sum_wait_sec); #11470| resultobj = SWIG_From_long_SS_long((long long)(result)); #11471| return resultobj; Error: GCC_ANALYZER_WARNING (CWE-476): [#def34] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_stats_info_mesh_replies_sum_wait_usec_get' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11523:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11518:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11518:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11518:10: note: in expansion of macro 'SWIG_ConvertPtr' #11521| } #11522| arg1 = (struct ub_stats_info *)(argp1); #11523|-> result = (long long) ((arg1)->mesh_replies_sum_wait_usec); #11524| resultobj = SWIG_From_long_SS_long((long long)(result)); #11525| return resultobj; Error: GCC_ANALYZER_WARNING (CWE-476): [#def35] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_stats_info_mesh_time_median_get' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11577:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11572:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11572:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11572:10: note: in expansion of macro 'SWIG_ConvertPtr' #11575| } #11576| arg1 = (struct ub_stats_info *)(argp1); #11577|-> result = (double) ((arg1)->mesh_time_median); #11578| resultobj = SWIG_From_double((double)(result)); #11579| return resultobj; Error: GCC_ANALYZER_WARNING (CWE-476): [#def36] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_ctx_dummy_get' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11679:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11674:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11674:10: note: in expansion of macro 'SWIG_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1170:57: note: in expansion of macro 'SWIG_Python_ConvertPtr' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:11674:10: note: in expansion of macro 'SWIG_ConvertPtr' #11677| } #11678| arg1 = (struct ub_ctx *)(argp1); #11679|-> result = (int) ((arg1)->dummy); #11680| resultobj = SWIG_From_int((int)(result)); #11681| return resultobj; Error: GCC_ANALYZER_WARNING (CWE-126): [#def37] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12464:29: warning[-Wanalyzer-out-of-bounds]: buffer over-read unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12549:1: note: in expansion of macro 'SWIG_init' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12289:17: note: in expansion of macro 'SWIG_GetModule' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12289:17: note: in expansion of macro 'SWIG_GetModule' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12668:3: note: in expansion of macro 'SWIG_InstallConstants' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:15: note: in expansion of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:930:25: note: in expansion of macro 'Py_INCREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1646:3: note: in expansion of macro 'SWIG_Py_INCREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:15: note: in expansion of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:932:25: note: in expansion of macro 'Py_DECREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12478:9: note: in expansion of macro 'SWIG_Py_DECREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12464:29: note: read of 4 bytes from after the end of 'swig_const_table' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12464:29: note: valid subscripts for 'swig_const_table' are '[0]' to '[0]' #12462| PyObject *obj = 0; #12463| size_t i; #12464|-> for (i = 0; constants[i].type; ++i) { #12465| switch(constants[i].type) { #12466| case SWIG_PY_POINTER: Error: GCC_ANALYZER_WARNING (CWE-126): [#def38] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12467:78: warning[-Wanalyzer-out-of-bounds]: buffer over-read unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1179:94: note: in definition of macro 'SWIG_InternalNewPointerObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12549:1: note: in expansion of macro 'SWIG_init' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12289:17: note: in expansion of macro 'SWIG_GetModule' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12289:17: note: in expansion of macro 'SWIG_GetModule' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12668:3: note: in expansion of macro 'SWIG_InstallConstants' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:15: note: in expansion of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:930:25: note: in expansion of macro 'Py_INCREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1646:3: note: in expansion of macro 'SWIG_Py_INCREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:15: note: in expansion of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:932:25: note: in expansion of macro 'Py_DECREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12478:9: note: in expansion of macro 'SWIG_Py_DECREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1179:94: note: in definition of macro 'SWIG_InternalNewPointerObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12467:78: note: read of 8 bytes from after the end of 'swig_const_table' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1179:94: note: in definition of macro 'SWIG_InternalNewPointerObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12467:78: note: valid subscripts for 'swig_const_table' are '[0]' to '[0]' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1179:94: note: in definition of macro 'SWIG_InternalNewPointerObj' #12465| switch(constants[i].type) { #12466| case SWIG_PY_POINTER: #12467|-> obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); #12468| break; #12469| case SWIG_PY_BINARY: Error: GCC_ANALYZER_WARNING (CWE-126): [#def39] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:66: warning[-Wanalyzer-out-of-bounds]: buffer over-read unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1187:87: note: in definition of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12549:1: note: in expansion of macro 'SWIG_init' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12289:17: note: in expansion of macro 'SWIG_GetModule' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12289:17: note: in expansion of macro 'SWIG_GetModule' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12668:3: note: in expansion of macro 'SWIG_InstallConstants' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:15: note: in expansion of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:930:25: note: in expansion of macro 'Py_INCREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1646:3: note: in expansion of macro 'SWIG_Py_INCREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:15: note: in expansion of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:932:25: note: in expansion of macro 'Py_DECREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12478:9: note: in expansion of macro 'SWIG_Py_DECREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1187:87: note: in definition of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:66: note: read of 8 bytes from after the end of 'swig_const_table' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1187:87: note: in definition of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:66: note: valid subscripts for 'swig_const_table' are '[0]' to '[0]' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1187:87: note: in definition of macro 'SWIG_NewPackedObj' #12468| break; #12469| case SWIG_PY_BINARY: #12470|-> obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); #12471| break; #12472| default: Error: GCC_ANALYZER_WARNING (CWE-126): [#def40] unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:89: warning[-Wanalyzer-out-of-bounds]: buffer over-read unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1187:91: note: in definition of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12549:1: note: in expansion of macro 'SWIG_init' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12289:17: note: in expansion of macro 'SWIG_GetModule' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12289:17: note: in expansion of macro 'SWIG_GetModule' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12668:3: note: in expansion of macro 'SWIG_InstallConstants' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:15: note: in expansion of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:930:25: note: in expansion of macro 'Py_INCREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1646:3: note: in expansion of macro 'SWIG_Py_INCREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:15: note: in expansion of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:932:25: note: in expansion of macro 'Py_DECREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12478:9: note: in expansion of macro 'SWIG_Py_DECREF' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1187:91: note: in definition of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:89: note: read of 8 bytes from after the end of 'swig_const_table' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1187:91: note: in definition of macro 'SWIG_NewPackedObj' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:12470:89: note: valid subscripts for 'swig_const_table' are '[0]' to '[0]' unbound-1.22.0-build/unbound-1.22.0/libunbound/python/libunbound_wrap.c:1187:91: note: in definition of macro 'SWIG_NewPackedObj' #12468| break; #12469| case SWIG_PY_BINARY: #12470|-> obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); #12471| break; #12472| default: Error: GCC_ANALYZER_WARNING (CWE-479): [#def41] unbound-1.22.0-build/unbound-1.22.0/testcode/streamtcp.c: scope_hint: In function 'sigh' unbound-1.22.0-build/unbound-1.22.0/testcode/streamtcp.c:551:17: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to 'exit' from within signal handler unbound-1.22.0-build/unbound-1.22.0/testcode/streamtcp.c:551:17: note: '_exit' is a possible signal-safe alternative for 'exit' # 549| /* simple cast to void will not silence Wunused-result */ # 550| (void)!write(STDOUT_FILENO, strpipe, strlen(strpipe)); # 551|-> exit(1); # 552| } # 553| str[21] = '0' + (sig/10)%10; Error: GCC_ANALYZER_WARNING (CWE-479): [#def42] unbound-1.22.0-build/unbound-1.22.0/testcode/streamtcp.c:557:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to 'exit' from within signal handler unbound-1.22.0-build/unbound-1.22.0/testcode/streamtcp.c:557:9: note: '_exit' is a possible signal-safe alternative for 'exit' # 555| /* simple cast to void will not silence Wunused-result */ # 556| (void)!write(STDOUT_FILENO, str, strlen(str)); # 557|-> exit(1); # 558| } # 559| #endif /* SIGPIPE */ Error: GCC_ANALYZER_WARNING (CWE-457): [#def43] unbound-1.22.0-build/unbound-1.22.0/util/configparser.c: scope_hint: In function 'ub_c_parse' unbound-1.22.0-build/unbound-1.22.0/util/configparser.c:1203:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'ub_c_ss' unbound-1.22.0-build/unbound-1.22.0/util/configparser.c:1188:9: note: in expansion of macro 'YYCOPY' unbound-1.22.0-build/unbound-1.22.0/util/configparser.c:2845:9: note: in expansion of macro 'YYSTACK_RELOCATE' unbound-1.22.0-build/unbound-1.22.0/util/configparser.c:1203:25: note: in definition of macro 'YYCOPY' unbound-1.22.0-build/unbound-1.22.0/util/configparser.c:2845:9: note: in expansion of macro 'YYSTACK_RELOCATE' unbound-1.22.0-build/unbound-1.22.0/util/configparser.c:1188:9: note: in expansion of macro 'YYCOPY' unbound-1.22.0-build/unbound-1.22.0/util/configparser.c:2845:9: note: in expansion of macro 'YYSTACK_RELOCATE' # 1201| # if defined __GNUC__ && 1 < __GNUC__ # 1202| # define YYCOPY(Dst, Src, Count) \ # 1203|-> __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src))) # 1204| # else # 1205| # define YYCOPY(Dst, Src, Count) \ Error: GCC_ANALYZER_WARNING (CWE-457): [#def44] unbound-1.22.0-build/unbound-1.22.0/util/configparser.c:2972:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>' # 2970| unconditionally makes the parser a bit smaller, and it avoids a # 2971| GCC warning that YYVAL may be used uninitialized. */ # 2972|-> yyval = yyvsp[1-yylen]; # 2973| # 2974| Error: GCC_ANALYZER_WARNING (CWE-476): [#def45] unbound-1.22.0-build/unbound-1.22.0/util/data/msgencode.c: scope_hint: In function 'compress_tree_store' unbound-1.22.0-build/unbound-1.22.0/util/data/msgencode.c:248:27: warning[-Wanalyzer-null-dereference]: dereference of NULL 'insertpt' unbound-1.22.0-build/unbound-1.22.0/util/data/msgencode.c:50: included_from: Included from here. unbound-1.22.0-build/unbound-1.22.0/util/data/msgencode.c: scope_hint: In function 'compress_tree_store' unbound-1.22.0-build/unbound-1.22.0/util/data/msgencode.c: scope_hint: In function 'compress_tree_store' # 246| /* if we have a vine, hang the vine into the tree */ # 247| if(prevnode) { # 248|-> *insertpt = prevnode; # 249| prevnode->parent = closest; # 250| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def46] unbound-1.22.0-build/unbound-1.22.0/util/ub_event_pluggable.c: scope_hint: In function 'ub_default_event_base' unbound-1.22.0-build/unbound-1.22.0/util/ub_event_pluggable.c:387:16: warning[-Wanalyzer-malloc-leak]: leak of 'my_base' # 385| my_base->super.magic = UB_EVENT_MAGIC; # 386| my_base->super.vmt = &default_event_base_vmt; # 387|-> return &my_base->super; # 388| } # 389| Error: GCC_ANALYZER_WARNING (CWE-401): [#def47] unbound-1.22.0-build/unbound-1.22.0/util/ub_event_pluggable.c: scope_hint: In function 'ub_libevent_event_base' unbound-1.22.0-build/unbound-1.22.0/util/ub_event_pluggable.c:405:16: warning[-Wanalyzer-malloc-leak]: leak of 'my_base' # 403| my_base->super.vmt = &default_event_base_vmt; # 404| my_base->base = base; # 405|-> return &my_base->super; # 406| #endif # 407| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def48] unbound-1.22.0-build/unbound-1.22.0/validator/val_neg.c: scope_hint: In function 'neg_data_chain' unbound-1.22.0-build/unbound-1.22.0/validator/val_neg.c:638:33: warning[-Wanalyzer-malloc-leak]: leak of 'first' unbound-1.22.0-build/unbound-1.22.0/config.h:1329: included_from: Included from here. unbound-1.22.0-build/unbound-1.22.0/validator/val_neg.c:44: included_from: Included from here. # 636| /* create the new subtree, i is labelcount of current creation */ # 637| /* this creates a 'first' to z->parent=NULL list of zones */ # 638|-> for(i=labs; i!=tolabs; i--) { # 639| /* create new item */ # 640| el = neg_setup_data_node(nm, nm_len, i);
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-40.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | unbound-1.22.0-1.fc42 |
store-results-to | /tmp/tmpewm5a7d2/unbound-1.22.0-1.fc42.tar.xz |
time-created | 2024-11-13 03:27:03 |
time-finished | 2024-11-13 03:30:25 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpewm5a7d2/unbound-1.22.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpewm5a7d2/unbound-1.22.0-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |