unbound-1.19.3-6.fc41

List of Defects

Error: SHELLCHECK_WARNING (CWE-477): [#def1]
/usr/sbin/unbound-control-setup:140:27: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#  138|   [ -f server.cnf ] || fatal "cannot create openssl configuration"
#  139|   
#  140|-> if [ ! -f "$SVR_BASE.pem" -o $RECREATE -eq 1 ]; then
#  141|       openssl req \
#  142|               -new -x509 \

Error: SHELLCHECK_WARNING (CWE-477): [#def2]
/usr/sbin/unbound-control-setup:176:27: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#  174|   [ -f client.cnf ] || fatal "cannot create openssl configuration"
#  175|   
#  176|-> if [ ! -f "$CTL_BASE.pem" -o $RECREATE -eq 1 ]; then
#  177|       openssl x509 \
#  178|           -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.19.3/unbound-1.19.3/libunbound/libunbound.c:366: error[autovarInvalidDeallocation]: Deallocation of an auto-variable (.) results in undefined behaviour.
#  364|   		a->super = &ctx->superalloc;
#  365|   		alloc_clear(a);
#  366|-> 		free(a);
#  367|   		a = na;
#  368|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
unbound-1.19.3/unbound-1.19.3/libunbound/libworker.c: scope_hint: In function 'libworker_fillup_fg'
unbound-1.19.3/unbound-1.19.3/libunbound/libworker.c:559:35: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(why_bogus)'
#  557|   	q->res->was_ratelimited = was_ratelimited;
#  558|   	if(why_bogus)
#  559|-> 		q->res->why_bogus = strdup(why_bogus);
#  560|   	if(rcode != 0) {
#  561|   		q->res->rcode = rcode;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_MangledTypeQueryModule'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:630:13: warning[-Wanalyzer-null-dereference]: dereference of NULL 'iter'
/usr/include/python3.12/tupleobject.h:39: included_from: Included from here.
/usr/include/python3.12/Python.h:62: included_from: Included from here.
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1290:20: note: in expansion of macro 'PyTuple_GET_SIZE'
/usr/include/python3.12/Python.h:35: included_from: Included from here.
/usr/include/python3.12/cpython/tupleobject.h:23:28: note: in expansion of macro '_PyTuple_CAST'
/usr/include/python3.12/cpython/tupleobject.h:24:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.12/cpython/tupleobject.h:24:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.12/cpython/tupleobject.h:24:12: note: in expansion of macro 'Py_SIZE'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1290:20: note: in expansion of macro 'PyTuple_GET_SIZE'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11640:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11640:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11640:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:3406:12: note: in expansion of macro 'SWIG_TypeQuery'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:3406:12: note: in expansion of macro 'SWIG_TypeQuery'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:2974:37: note: in expansion of macro 'SWIG_GetModule'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:2974:37: note: in expansion of macro 'SWIG_GetModule'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:2974:37: note: in expansion of macro 'SWIG_GetModule'
#  628|     swig_module_info *iter = start;
#  629|     do {
#  630|->     if (iter->size) {
#  631|         size_t l = 0;
#  632|         size_t r = iter->size - 1;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def22]
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1152:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12310:15: note: in expansion of macro 'SWIG_InternalNewPointerObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12392:1: note: in expansion of macro 'SWIG_init'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12132:17: note: in expansion of macro 'SWIG_GetModule'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12132:17: note: in expansion of macro 'SWIG_GetModule'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12511:3: note: in expansion of macro 'SWIG_InstallConstants'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:15: note: in expansion of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1616:3: note: in expansion of macro 'Py_INCREF'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:15: note: in expansion of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12321:9: note: in expansion of macro 'Py_DECREF'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12310:15: note: in expansion of macro 'SWIG_InternalNewPointerObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1152:57: note: read of 8 bytes from after the end of 'swig_const_table'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12310:15: note: in expansion of macro 'SWIG_InternalNewPointerObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1152:57: note: valid subscripts for 'swig_const_table' are '[0]' to '[0]'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12310:15: note: in expansion of macro 'SWIG_InternalNewPointerObj'
#                                                            └──────────────────────────┘
#                                                                         ^
# 1150|   #endif
# 1151|   
# 1152|-> #define SWIG_InternalNewPointerObj(ptr, type, flags)	SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
# 1153|   
# 1154|   #define SWIG_CheckImplicit(ty)                          SWIG_Python_CheckImplicit(ty) 

Error: GCC_ANALYZER_WARNING (CWE-126): [#def23]
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1160:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:15: note: in expansion of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12392:1: note: in expansion of macro 'SWIG_init'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12132:17: note: in expansion of macro 'SWIG_GetModule'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12132:17: note: in expansion of macro 'SWIG_GetModule'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12511:3: note: in expansion of macro 'SWIG_InstallConstants'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:15: note: in expansion of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1616:3: note: in expansion of macro 'Py_INCREF'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:15: note: in expansion of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12321:9: note: in expansion of macro 'Py_DECREF'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:15: note: in expansion of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1160:57: note: read of 8 bytes from after the end of 'swig_const_table'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:15: note: in expansion of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1160:57: note: valid subscripts for 'swig_const_table' are '[0]' to '[0]'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:15: note: in expansion of macro 'SWIG_NewPackedObj'
#                                                            └──────────────────────────┘
#                                                                         ^
# 1158|   /* for raw packed data */
# 1159|   #define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
# 1160|-> #define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
# 1161|   
# 1162|   /* for class or struct pointers */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SwigPyClientData_New'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1658:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'data'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11537:45: note: in expansion of macro 'SWIG_NewClientData'
# 1656|       SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
# 1657|       /* the klass element */
# 1658|->     data->klass = obj;
# 1659|       Py_INCREF(data->klass);
# 1660|       /* the newraw method and newargs arguments used to create a new raw instance */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_new_ub_stats_info'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:2862:6: warning[-Wanalyzer-malloc-leak]: leak of 'result'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11439:15: note: in expansion of macro 'SWIG_NewPointerObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11439:15: note: in expansion of macro 'SWIG_NewPointerObj'
# 2860|   
# 2861|     robj = SwigPyObject_New(ptr, type, own);
# 2862|->   if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
# 2863|       PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
# 2864|       Py_DECREF(robj);

Error: CLANG_WARNING: [#def26]
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:3822:9: warning[deadcode.DeadStores]: Although the value stored to 'fdfl' is used in the enclosing expression, the value is never actually read from 'fdfl'
# 3820|         (PyObject_CallMethod(obj, "flush", NULL) != NULL) && /* flush() succeeded */
# 3821|         ((fd = PyObject_AsFileDescriptor(obj)) != -1) &&     /* got file descriptor */
# 3822|->       ((fdfl = fcntl(fd, F_GETFL)) != -1)                  /* got descriptor flags */
# 3823|       ) {
# 3824|       return 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_stats_info_mesh_num_states_get'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11046:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11041:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11041:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11041:10: note: in expansion of macro 'SWIG_ConvertPtr'
#11044|     }
#11045|     arg1 = (struct ub_stats_info *)(argp1);
#11046|->   result = (long long) ((arg1)->mesh_num_states);
#11047|     resultobj = SWIG_From_long_SS_long((long long)(result));
#11048|     return resultobj;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_stats_info_mesh_num_reply_states_get'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11100:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11095:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11095:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11095:10: note: in expansion of macro 'SWIG_ConvertPtr'
#11098|     }
#11099|     arg1 = (struct ub_stats_info *)(argp1);
#11100|->   result = (long long) ((arg1)->mesh_num_reply_states);
#11101|     resultobj = SWIG_From_long_SS_long((long long)(result));
#11102|     return resultobj;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_stats_info_mesh_jostled_get'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11154:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11149:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11149:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11149:10: note: in expansion of macro 'SWIG_ConvertPtr'
#11152|     }
#11153|     arg1 = (struct ub_stats_info *)(argp1);
#11154|->   result = (long long) ((arg1)->mesh_jostled);
#11155|     resultobj = SWIG_From_long_SS_long((long long)(result));
#11156|     return resultobj;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_stats_info_mesh_dropped_get'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11208:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11203:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11203:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11203:10: note: in expansion of macro 'SWIG_ConvertPtr'
#11206|     }
#11207|     arg1 = (struct ub_stats_info *)(argp1);
#11208|->   result = (long long) ((arg1)->mesh_dropped);
#11209|     resultobj = SWIG_From_long_SS_long((long long)(result));
#11210|     return resultobj;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_stats_info_mesh_replies_sent_get'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11262:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11257:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11257:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11257:10: note: in expansion of macro 'SWIG_ConvertPtr'
#11260|     }
#11261|     arg1 = (struct ub_stats_info *)(argp1);
#11262|->   result = (long long) ((arg1)->mesh_replies_sent);
#11263|     resultobj = SWIG_From_long_SS_long((long long)(result));
#11264|     return resultobj;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_stats_info_mesh_replies_sum_wait_sec_get'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11316:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11311:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11311:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11311:10: note: in expansion of macro 'SWIG_ConvertPtr'
#11314|     }
#11315|     arg1 = (struct ub_stats_info *)(argp1);
#11316|->   result = (long long) ((arg1)->mesh_replies_sum_wait_sec);
#11317|     resultobj = SWIG_From_long_SS_long((long long)(result));
#11318|     return resultobj;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_stats_info_mesh_replies_sum_wait_usec_get'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11370:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11365:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11365:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11365:10: note: in expansion of macro 'SWIG_ConvertPtr'
#11368|     }
#11369|     arg1 = (struct ub_stats_info *)(argp1);
#11370|->   result = (long long) ((arg1)->mesh_replies_sum_wait_usec);
#11371|     resultobj = SWIG_From_long_SS_long((long long)(result));
#11372|     return resultobj;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_stats_info_mesh_time_median_get'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11424:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11419:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11419:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11419:10: note: in expansion of macro 'SWIG_ConvertPtr'
#11422|     }
#11423|     arg1 = (struct ub_stats_info *)(argp1);
#11424|->   result = (double) ((arg1)->mesh_time_median);
#11425|     resultobj = SWIG_From_double((double)(result));
#11426|     return resultobj;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function '_wrap_ub_ctx_dummy_get'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11526:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg1'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11521:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11521:10: note: in expansion of macro 'SWIG_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1143:57: note: in expansion of macro 'SWIG_Python_ConvertPtr'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:11521:10: note: in expansion of macro 'SWIG_ConvertPtr'
#11524|     }
#11525|     arg1 = (struct ub_ctx *)(argp1);
#11526|->   result = (int) ((arg1)->dummy);
#11527|     resultobj = SWIG_From_int((int)(result));
#11528|     return resultobj;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def36]
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12307:29: warning[-Wanalyzer-out-of-bounds]: buffer over-read
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12392:1: note: in expansion of macro 'SWIG_init'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12132:17: note: in expansion of macro 'SWIG_GetModule'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12132:17: note: in expansion of macro 'SWIG_GetModule'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12511:3: note: in expansion of macro 'SWIG_InstallConstants'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:15: note: in expansion of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1616:3: note: in expansion of macro 'Py_INCREF'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:15: note: in expansion of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12321:9: note: in expansion of macro 'Py_DECREF'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12307:29: note: read of 4 bytes from after the end of 'swig_const_table'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12307:29: note: valid subscripts for 'swig_const_table' are '[0]' to '[0]'
#                                                          └───────────────────────┘
#                                                                      ^
#12305|       PyObject *obj = 0;
#12306|       size_t i;
#12307|->     for (i = 0; constants[i].type; ++i) {
#12308|         switch(constants[i].type) {
#12309|         case SWIG_PY_POINTER:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def37]
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12310:78: warning[-Wanalyzer-out-of-bounds]: buffer over-read
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1152:94: note: in definition of macro 'SWIG_InternalNewPointerObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12392:1: note: in expansion of macro 'SWIG_init'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12132:17: note: in expansion of macro 'SWIG_GetModule'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12132:17: note: in expansion of macro 'SWIG_GetModule'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12511:3: note: in expansion of macro 'SWIG_InstallConstants'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:15: note: in expansion of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1616:3: note: in expansion of macro 'Py_INCREF'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:15: note: in expansion of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12321:9: note: in expansion of macro 'Py_DECREF'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1152:94: note: in definition of macro 'SWIG_InternalNewPointerObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12310:78: note: read of 8 bytes from after the end of 'swig_const_table'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1152:94: note: in definition of macro 'SWIG_InternalNewPointerObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12310:78: note: valid subscripts for 'swig_const_table' are '[0]' to '[0]'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1152:94: note: in definition of macro 'SWIG_InternalNewPointerObj'
#                                                            └─────────────────────────────────────────────┘
#                                                                                   ^
#12308|         switch(constants[i].type) {
#12309|         case SWIG_PY_POINTER:
#12310|->         obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
#12311|           break;
#12312|         case SWIG_PY_BINARY:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def38]
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:66: warning[-Wanalyzer-out-of-bounds]: buffer over-read
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1160:87: note: in definition of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12392:1: note: in expansion of macro 'SWIG_init'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12132:17: note: in expansion of macro 'SWIG_GetModule'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12132:17: note: in expansion of macro 'SWIG_GetModule'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12511:3: note: in expansion of macro 'SWIG_InstallConstants'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:15: note: in expansion of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1616:3: note: in expansion of macro 'Py_INCREF'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:15: note: in expansion of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12321:9: note: in expansion of macro 'Py_DECREF'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1160:87: note: in definition of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:66: note: read of 8 bytes from after the end of 'swig_const_table'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1160:87: note: in definition of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:66: note: valid subscripts for 'swig_const_table' are '[0]' to '[0]'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1160:87: note: in definition of macro 'SWIG_NewPackedObj'
#                                                            └────────────────────────────┘
#                                                                          ^
#12311|           break;
#12312|         case SWIG_PY_BINARY:
#12313|->         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
#12314|           break;
#12315|         default:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def39]
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:89: warning[-Wanalyzer-out-of-bounds]: buffer over-read
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1160:91: note: in definition of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12392:1: note: in expansion of macro 'SWIG_init'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12132:17: note: in expansion of macro 'SWIG_GetModule'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12132:17: note: in expansion of macro 'SWIG_GetModule'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12511:3: note: in expansion of macro 'SWIG_InstallConstants'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:15: note: in expansion of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1616:3: note: in expansion of macro 'Py_INCREF'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:15: note: in expansion of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12321:9: note: in expansion of macro 'Py_DECREF'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1160:91: note: in definition of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:89: note: read of 8 bytes from after the end of 'swig_const_table'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1160:91: note: in definition of macro 'SWIG_NewPackedObj'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:12313:89: note: valid subscripts for 'swig_const_table' are '[0]' to '[0]'
unbound-1.19.3/unbound-1.19.3/libunbound/python/libunbound_wrap.c:1160:91: note: in definition of macro 'SWIG_NewPackedObj'
#                                                            └─────────────────────────────────────────────┘
#                                                                                   ^
#12311|           break;
#12312|         case SWIG_PY_BINARY:
#12313|->         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
#12314|           break;
#12315|         default:

Error: CPPCHECK_WARNING (CWE-909): [#def40]
unbound-1.19.3/unbound-1.19.3/pythonmod/interface.h:15598: error[uninitStructMember]: Uninitialized struct member: arg2.first
#15596|       }
#15597|     }
#15598|->   if (arg1) (arg1)->control_ifs = arg2;
#15599|     resultobj = SWIG_Py_Void();
#15600|     return resultobj;

Error: CPPCHECK_WARNING (CWE-909): [#def41]
unbound-1.19.3/unbound-1.19.3/pythonmod/interface.h:15598: error[uninitStructMember]: Uninitialized struct member: arg2.last
#15596|       }
#15597|     }
#15598|->   if (arg1) (arg1)->control_ifs = arg2;
#15599|     resultobj = SWIG_Py_Void();
#15600|     return resultobj;

Error: GCC_ANALYZER_WARNING (CWE-479): [#def42]
unbound-1.19.3/unbound-1.19.3/testcode/streamtcp.c: scope_hint: In function 'sigh'
unbound-1.19.3/unbound-1.19.3/testcode/streamtcp.c:547:17: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to 'exit' from within signal handler
unbound-1.19.3/unbound-1.19.3/testcode/streamtcp.c:547:17: note: '_exit' is a possible signal-safe alternative for 'exit'
#  545|   		/* simple cast to void will not silence Wunused-result */
#  546|   		(void)!write(STDOUT_FILENO, strpipe, strlen(strpipe));
#  547|-> 		exit(1);
#  548|   	}
#  549|   	str[21] = '0' + (sig/10)%10;

Error: GCC_ANALYZER_WARNING (CWE-479): [#def43]
unbound-1.19.3/unbound-1.19.3/testcode/streamtcp.c:553:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to 'exit' from within signal handler
unbound-1.19.3/unbound-1.19.3/testcode/streamtcp.c:553:9: note: '_exit' is a possible signal-safe alternative for 'exit'
#  551|   	/* simple cast to void will not silence Wunused-result */
#  552|   	(void)!write(STDOUT_FILENO, str, strlen(str));
#  553|-> 	exit(1);
#  554|   }
#  555|   #endif /* SIGPIPE */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def44]
unbound-1.19.3/unbound-1.19.3/util/configparser.c: scope_hint: In function 'ub_c_parse'
unbound-1.19.3/unbound-1.19.3/util/configparser.c:1164:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'ub_c_ss'
unbound-1.19.3/unbound-1.19.3/util/configparser.c:1149:9: note: in expansion of macro 'YYCOPY'
unbound-1.19.3/unbound-1.19.3/util/configparser.c:2742:9: note: in expansion of macro 'YYSTACK_RELOCATE'
unbound-1.19.3/unbound-1.19.3/util/configparser.c:1164:25: note: in definition of macro 'YYCOPY'
unbound-1.19.3/unbound-1.19.3/util/configparser.c:2742:9: note: in expansion of macro 'YYSTACK_RELOCATE'
unbound-1.19.3/unbound-1.19.3/util/configparser.c:1149:9: note: in expansion of macro 'YYCOPY'
unbound-1.19.3/unbound-1.19.3/util/configparser.c:2742:9: note: in expansion of macro 'YYSTACK_RELOCATE'
# 1162|   #  if defined __GNUC__ && 1 < __GNUC__
# 1163|   #   define YYCOPY(Dst, Src, Count) \
# 1164|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
# 1165|   #  else
# 1166|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-457): [#def45]
unbound-1.19.3/unbound-1.19.3/util/configparser.c:2869:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>'
# 2867|        unconditionally makes the parser a bit smaller, and it avoids a
# 2868|        GCC warning that YYVAL may be used uninitialized.  */
# 2869|->   yyval = yyvsp[1-yylen];
# 2870|   
# 2871|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
unbound-1.19.3/unbound-1.19.3/util/data/msgencode.c: scope_hint: In function 'compress_tree_store'
unbound-1.19.3/unbound-1.19.3/util/data/msgencode.c:244:27: warning[-Wanalyzer-null-dereference]: dereference of NULL 'insertpt'
unbound-1.19.3/unbound-1.19.3/util/data/msgencode.c:50: included_from: Included from here.
unbound-1.19.3/unbound-1.19.3/util/data/msgencode.c: scope_hint: In function 'compress_tree_store'
unbound-1.19.3/unbound-1.19.3/util/data/msgencode.c: scope_hint: In function 'compress_tree_store'
#  242|   	/* if we have a vine, hang the vine into the tree */
#  243|   	if(prevnode) {
#  244|-> 		*insertpt = prevnode;
#  245|   		prevnode->parent = closest;
#  246|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
unbound-1.19.3/unbound-1.19.3/util/ub_event_pluggable.c: scope_hint: In function 'ub_default_event_base'
unbound-1.19.3/unbound-1.19.3/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): [#def48]
unbound-1.19.3/unbound-1.19.3/util/ub_event_pluggable.c: scope_hint: In function 'ub_libevent_event_base'
unbound-1.19.3/unbound-1.19.3/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: CLANG_WARNING: [#def49]
unbound-1.19.3/unbound-1.19.3/validator/autotrust.c:725:3: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  723|   	while(iter(&list_i, &rr, &rr_len, &dname_len)) {
#  724|   		log_assert(data->rr_data[i]);
#  725|-> 		memmove(data->rr_data[i],
#  726|   			sldns_wirerr_get_rdatawl(rr, rr_len, dname_len),
#  727|   			data->rr_len[i]);

Error: CLANG_WARNING: [#def50]
unbound-1.19.3/unbound-1.19.3/validator/val_neg.c:276:3: warning[unix.Malloc]: Use of memory after it is freed
#  274|   	/* delete elements until enough space or its empty */
#  275|   	while(neg->last && neg->max < neg->use + need) {
#  276|-> 		neg_delete_data(neg, neg->last);
#  277|   	}
#  278|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
unbound-1.19.3/unbound-1.19.3/validator/val_neg.c: scope_hint: In function 'neg_data_chain'
unbound-1.19.3/unbound-1.19.3/validator/val_neg.c:638:33: warning[-Wanalyzer-malloc-leak]: leak of 'first'
unbound-1.19.3/unbound-1.19.3/config.h:1230: included_from: Included from here.
unbound-1.19.3/unbound-1.19.3/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);

Scan Properties

analyzer-version-clang18.1.3
analyzer-version-cppcheck2.13.0
analyzer-version-gcc14.0.1
analyzer-version-gcc-analyzer14.0.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-132.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameunbound-1.19.3-6.fc41
store-results-to/tmp/tmpcq_5089g/unbound-1.19.3-6.fc41.tar.xz
time-created2024-04-22 11:22:59
time-finished2024-04-22 11:26:27
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpcq_5089g/unbound-1.19.3-6.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpcq_5089g/unbound-1.19.3-6.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9