libnl3-3.11.0-1.fc42

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1]
libnl3-3.11.0-build/libnl-3.11.0/include/netlink/list.h:51:12: warning[-Wanalyzer-use-after-free]: use after 'free' of 'entry'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/link/bridge.c: scope_hint: In function 'mst_list_clear'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/link/bridge.c:217:9: note: in expansion of macro 'nl_list_for_each_entry'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/link/bridge.c: scope_hint: In function 'mst_list_clear'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/link/bridge.c: scope_hint: In function 'mst_list_clear'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/link/bridge.c: scope_hint: In function 'mst_list_clear'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/link/bridge.c:169:9: note: in expansion of macro 'nl_list_for_each_entry_safe'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/link/bridge.c: scope_hint: In function 'mst_list_clear'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/link/bridge.c:169:9: note: in expansion of macro 'nl_list_for_each_entry_safe'
#   49|   static inline void nl_list_del(struct nl_list_head *obj)
#   50|   {
#   51|-> 	obj->next->prev = obj->prev;
#   52|   	obj->prev->next = obj->next;
#   53|   }

Error: GCC_ANALYZER_WARNING (CWE-127): [#def2]
libnl3-3.11.0-build/libnl-3.11.0/include/netlink/list.h:57:20: warning[-Wanalyzer-out-of-bounds]: heap-based buffer under-read
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch.c: scope_hint: In function 'free_ematch_list'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch.c:265:9: note: in expansion of macro 'nl_list_for_each_entry_safe'
#   55|   static inline int nl_list_empty(struct nl_list_head *head)
#   56|   {
#   57|-> 	return head->next == head;
#   58|   }
#   59|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def3]
libnl3-3.11.0-build/libnl-3.11.0/include/netlink/list.h:57:20: warning[-Wanalyzer-use-after-free]: use after 'free' of 'pos'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch.c: scope_hint: In function 'free_ematch_list'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch.c:265:9: note: in expansion of macro 'nl_list_for_each_entry_safe'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch.c:265:9: note: in expansion of macro 'nl_list_for_each_entry_safe'
#   55|   static inline int nl_list_empty(struct nl_list_head *head)
#   56|   {
#   57|-> 	return head->next == head;
#   58|   }
#   59|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/link/bridge.c: scope_hint: In function 'bridge_clone'
libnl3-3.11.0-build/libnl-3.11.0/include/netlink/list.h:61:50: warning[-Wanalyzer-malloc-leak]: leak of 'mst_state_entry_clone(entry)'
libnl3-3.11.0-build/libnl-3.11.0/include/netlink/list.h:65:9: note: in expansion of macro 'nl_container_of'
libnl3-3.11.0-build/libnl-3.11.0/include/netlink/list.h:82:22: note: in expansion of macro 'nl_list_entry'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/link/bridge.c:217:9: note: in expansion of macro 'nl_list_for_each_entry'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/link/bridge.c:217:9: note: in expansion of macro 'nl_list_for_each_entry'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/link/bridge.c: scope_hint: In function 'bridge_clone'
libnl3-3.11.0-build/libnl-3.11.0/include/netlink/list.h:91:30: note: in definition of macro 'nl_init_list_head'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/link/bridge.c: scope_hint: In function 'bridge_clone'
libnl3-3.11.0-build/libnl-3.11.0/include/netlink/list.h:65:9: note: in expansion of macro 'nl_container_of'
libnl3-3.11.0-build/libnl-3.11.0/include/netlink/list.h:82:22: note: in expansion of macro 'nl_list_entry'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/link/bridge.c:217:9: note: in expansion of macro 'nl_list_for_each_entry'
#   59|   
#   60|   #define nl_container_of(ptr, type, member) ({			\
#   61|->         const __typeof__( ((type *)0)->member ) *__mptr = (ptr);\
#   62|           (type *)( (char *)__mptr - (offsetof(type, member)));})
#   63|   

Error: GCC_ANALYZER_WARNING (CWE-127): [#def5]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch.c: scope_hint: In function 'free_ematch_list'
libnl3-3.11.0-build/libnl-3.11.0/include/netlink/list.h:61:50: warning[-Wanalyzer-out-of-bounds]: heap-based buffer under-read
libnl3-3.11.0-build/libnl-3.11.0/include/netlink/list.h:65:9: note: in expansion of macro 'nl_container_of'
libnl3-3.11.0-build/libnl-3.11.0/include/netlink/list.h:85:20: note: in expansion of macro 'nl_list_entry'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch.c:265:9: note: in expansion of macro 'nl_list_for_each_entry_safe'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch.c:265:9: note: in expansion of macro 'nl_list_for_each_entry_safe'
libnl3-3.11.0-build/libnl-3.11.0/include/netlink/list.h:65:9: note: in expansion of macro 'nl_container_of'
libnl3-3.11.0-build/libnl-3.11.0/include/netlink/list.h:85:20: note: in expansion of macro 'nl_list_entry'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch.c:265:9: note: in expansion of macro 'nl_list_for_each_entry_safe'
#   59|   
#   60|   #define nl_container_of(ptr, type, member) ({			\
#   61|->         const __typeof__( ((type *)0)->member ) *__mptr = (ptr);\
#   62|           (type *)( (char *)__mptr - (offsetof(type, member)));})
#   63|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
libnl3-3.11.0-build/libnl-3.11.0/lib/cache_mngr.c: scope_hint: In function 'nl_cache_mngr_free'
libnl3-3.11.0-build/libnl-3.11.0/lib/cache_mngr.c:650:39: warning[-Wanalyzer-null-dereference]: dereference of NULL '*mngr.cm_assocs + (long unsigned int)i * 32'
libnl3-3.11.0-build/libnl-3.11.0/include/base/nl-base-utils.h:755:25: note: in definition of macro '_NL_AUTO_DEFINE_FCN_TYPED0'
libnl3-3.11.0-build/libnl-3.11.0/lib/cache_mngr.c: scope_hint: In function 'nl_cache_mngr_free'
#  648|   
#  649|   	for (i = 0; i < mngr->cm_nassocs; i++) {
#  650|-> 		if (mngr->cm_assocs[i].ca_cache) {
#  651|   			nl_cache_mngt_unprovide(mngr->cm_assocs[i].ca_cache);
#  652|   			nl_cache_free(mngr->cm_assocs[i].ca_cache);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
libnl3-3.11.0-build/libnl-3.11.0/lib/genl/family.c: scope_hint: In function 'genl_family_add_op'
libnl3-3.11.0-build/libnl-3.11.0/lib/genl/family.c:369:25: warning[-Wanalyzer-malloc-leak]: leak of 'op'
libnl3-3.11.0-build/libnl-3.11.0/include/netlink/utils.h:10: included_from: Included from here.
libnl3-3.11.0-build/libnl-3.11.0/include/netlink/object.h:10: included_from: Included from here.
libnl3-3.11.0-build/libnl-3.11.0/include/netlink/netlink.h:29: included_from: Included from here.
libnl3-3.11.0-build/libnl-3.11.0/lib/genl/family.c:17: included_from: Included from here.
libnl3-3.11.0-build/libnl-3.11.0/lib/genl/family.c:84:9: note: in expansion of macro 'nl_list_for_each_entry'
#  367|   
#  368|   	nl_list_add_tail(&op->o_list, &family->gf_ops);
#  369|-> 	family->ce_mask |= FAMILY_ATTR_OPS;
#  370|   
#  371|   	return 0;

Error: CPPCHECK_WARNING (CWE-401): [#def8]
libnl3-3.11.0-build/libnl-3.11.0/lib/genl/family.c:371: error[memleak]: Memory leak: op
#  369|   	family->ce_mask |= FAMILY_ATTR_OPS;
#  370|   
#  371|-> 	return 0;
#  372|   }
#  373|   

Error: CPPCHECK_WARNING (CWE-401): [#def9]
libnl3-3.11.0-build/libnl-3.11.0/lib/genl/family.c:392: error[memleak]: Memory leak: grp
#  390|   	nl_list_add_tail(&grp->list, &family->gf_mc_grps);
#  391|   
#  392|-> 	return 0;
#  393|   }
#  394|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
libnl3-3.11.0-build/libnl-3.11.0/lib/hashtable.c: scope_hint: In function 'nl_hash_table_add'
libnl3-3.11.0-build/libnl-3.11.0/lib/hashtable.c:125:32: warning[-Wanalyzer-malloc-leak]: leak of 'node'
#  123|   		if (nl_object_identical(node->obj, obj)) {
#  124|   			NL_DBG(2, "Warning: Add to hashtable found duplicate...\n");
#  125|-> 			return -NLE_EXIST;
#  126|   		}
#  127|   		node = node->next;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
libnl3-3.11.0-build/libnl-3.11.0/lib/msg.c:552:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'msg'
libnl3-3.11.0-build/libnl-3.11.0/lib/msg.c: scope_hint: In function 'print_hdr'
libnl3-3.11.0-build/libnl-3.11.0/lib/msg.c: scope_hint: In function 'print_hdr'
libnl3-3.11.0-build/libnl-3.11.0/lib/msg.c: scope_hint: In function 'print_hdr'
#  550|   struct nlmsghdr *nlmsg_hdr(struct nl_msg *n)
#  551|   {
#  552|-> 	return n->nm_nlh;
#  553|   }
#  554|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
libnl3-3.11.0-build/libnl-3.11.0/lib/msg.c: scope_hint: In function 'nlmsg_hdr'
libnl3-3.11.0-build/libnl-3.11.0/lib/msg.c:552:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'n'
#  550|   struct nlmsghdr *nlmsg_hdr(struct nl_msg *n)
#  551|   {
#  552|-> 	return n->nm_nlh;
#  553|   }
#  554|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
libnl3-3.11.0-build/libnl-3.11.0/lib/object.c: scope_hint: In function 'nl_object_clone'
libnl3-3.11.0-build/libnl-3.11.0/lib/object.c:59:16: warning[-Wanalyzer-malloc-leak]: leak of 'nl_object_alloc(*obj.ce_ops)'
libnl3-3.11.0-build/libnl-3.11.0/lib/object.c: scope_hint: In function 'nl_object_clone'
libnl3-3.11.0-build/libnl-3.11.0/lib/object.c:35: included_from: Included from here.
libnl3-3.11.0-build/libnl-3.11.0/lib/object.c:73:9: note: in expansion of macro 'NL_DBG'
#   57|   	struct nl_object *new;
#   58|   
#   59|-> 	if (ops->oo_size < sizeof(*new))
#   60|   		BUG();
#   61|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/classid.c:57:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'str'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/classid.c: scope_hint: In function 'classid_map_add'
#   55|   	int c;
#   56|   
#   57|-> 	while ((c = *str++))
#   58|   		hash = ((hash << 5) + hash) + c; /* hash * 33 + c */
#   59|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def15]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch.c: scope_hint: In function 'rtnl_ematch_free'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch.c:163:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch.c:265:9: note: in expansion of macro 'nl_list_for_each_entry_safe'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch.c:163:9: note: read of 8 bytes from after the end of the region
#  161|   	NL_DBG(2, "freed ematch %p\n", ematch);
#  162|   	rtnl_ematch_unlink(ematch);
#  163|-> 	free(ematch->e_data);
#  164|   	free(ematch);
#  165|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c: scope_hint: In function 'ematch__create_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2205:12: warning[-Wanalyzer-malloc-leak]: leak of 'ematch_alloc(64, yyscanner)'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2191:21: note: in expansion of macro 'yy_create_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2195:24: note: in expansion of macro 'yyalloc'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2816:7: note: in expansion of macro 'yyalloc'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2195:24: note: in expansion of macro 'yyalloc'
# 2203|   	 * we need to put in 2 end-of-buffer characters.
# 2204|   	 */
# 2205|-> 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 2206|   	if ( ! b->yy_ch_buf )
# 2207|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c: scope_hint: In function 'ematch__create_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2205:12: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(64)'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2191:21: note: in expansion of macro 'yy_create_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2195:24: note: in expansion of macro 'yyalloc'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c: scope_hint: In function 'ematch__create_buffer'
# 2203|   	 * we need to put in 2 end-of-buffer characters.
# 2204|   	 */
# 2205|-> 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 2206|   	if ( ! b->yy_ch_buf )
# 2207|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c: scope_hint: In function 'ematch__init_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2247:19: warning[-Wanalyzer-null-dereference]: dereference of NULL 'b'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2126:10: note: in expansion of macro 'yyrestart'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2131:16: note: in expansion of macro 'yyensure_buffer_stack'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2349:13: note: in expansion of macro 'yyensure_buffer_stack'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2131:16: note: in expansion of macro 'yyensure_buffer_stack'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2133:27: note: in expansion of macro 'yy_create_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2191:21: note: in expansion of macro 'yy_create_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2210:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2239:17: note: in expansion of macro 'yy_init_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2245:2: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2268:10: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2245:2: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2210:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2133:27: note: in expansion of macro 'yy_create_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2136:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2136:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2136:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2239:17: note: in expansion of macro 'yy_init_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2245:2: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2268:10: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2245:2: note: in expansion of macro 'yy_flush_buffer'
# 2245|   
# 2246|   	yy_flush_buffer( b , yyscanner);
# 2247|-> 
# 2248|   	b->yy_input_file = file;
# 2249|   	b->yy_fill_buffer = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c: scope_hint: In function 'ematch__scan_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2465:25: warning[-Wanalyzer-malloc-leak]: leak of 'ematch_alloc(n,  yyscanner)'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2449:17: note: in expansion of macro 'yy_scan_bytes'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2458:24: note: in expansion of macro 'yyalloc'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2816:7: note: in expansion of macro 'yyalloc'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2458:24: note: in expansion of macro 'yyalloc'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2467:6: note: in expansion of macro 'yy_scan_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2399:17: note: in expansion of macro 'yy_scan_buffer'
# 2463|   	for ( i = 0; i < _yybytes_len; ++i )
# 2464|   		buf[i] = yybytes[i];
# 2465|-> 
# 2466|   	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 2467|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c: scope_hint: In function 'ematch__scan_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2465:25: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(n)'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2449:17: note: in expansion of macro 'yy_scan_bytes'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2458:24: note: in expansion of macro 'yyalloc'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c: scope_hint: In function 'ematch__scan_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2467:6: note: in expansion of macro 'yy_scan_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_grammar.c:2399:17: note: in expansion of macro 'yy_scan_buffer'
# 2463|   	for ( i = 0; i < _yybytes_len; ++i )
# 2464|   		buf[i] = yybytes[i];
# 2465|-> 
# 2466|   	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 2467|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def21]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_syntax.c: scope_hint: In function 'ematch_parse'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_syntax.c:543:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'yyss'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_syntax.c:528:9: note: in expansion of macro 'YYCOPY'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_syntax.c:1479:9: note: in expansion of macro 'YYSTACK_RELOCATE'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_syntax.c:528:9: note: in expansion of macro 'YYCOPY'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_syntax.c:1479:9: note: in expansion of macro 'YYSTACK_RELOCATE'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_syntax.c:528:9: note: in expansion of macro 'YYCOPY'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/ematch_syntax.c:1479:9: note: in expansion of macro 'YYSTACK_RELOCATE'
#  541|   #  if defined __GNUC__ && 1 < __GNUC__
#  542|   #   define YYCOPY(Dst, Src, Count) \
#  543|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  544|   #  else
#  545|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/u32.c: scope_hint: In function 'print_selector'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/cls/u32.c:312:16: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sel'
#  310|   	struct tc_u32_key *key;
#  311|   
#  312|-> 	if (sel->hmask || sel->hoff) {
#  313|   		/* I guess this will never be used since the kernel only
#  314|   		 * exports the selector if no divisor is set but hash offset

Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/link/macvlan.c: scope_hint: In function 'macvlan_clone'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/link/macvlan.c:214:35: warning[-Wanalyzer-malloc-leak]: leak of 'calloc((long unsigned int)*vdst.mvi_maccount, 8)'
#  212|   	if (   vsrc->mvi_mask & MACVLAN_HAS_MACADDR
#  213|   	    && vsrc->mvi_maccount > 0) {
#  214|-> 		vdst->mvi_macaddr = calloc(vdst->mvi_maccount,
#  215|   		                           sizeof(*(vdst->mvi_macaddr)));
#  216|   		for (i = 0; i < vdst->mvi_maccount; i++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/link/macvlan.c: scope_hint: In function 'rtnl_link_macvlan_add_macaddr'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/link/macvlan.c:593:23: warning[-Wanalyzer-malloc-leak]: leak of 'mvi_macaddr'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/link/macvlan.c:569:9: note: in expansion of macro 'IS_MACVLAN_LINK_ASSERT'
#  591|   	mvi->mvi_maccount++;
#  592|   
#  593|-> 	mvi->mvi_mask |= MACVLAN_HAS_MACADDR;
#  594|   
#  595|   	return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c: scope_hint: In function 'pktloc__create_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1625:12: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(64)'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1611:21: note: in expansion of macro 'yy_create_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1615:24: note: in expansion of macro 'yyalloc'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c: scope_hint: In function 'pktloc__create_buffer'
# 1623|   	 * we need to put in 2 end-of-buffer characters.
# 1624|   	 */
# 1625|-> 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 1626|   	if ( ! b->yy_ch_buf )
# 1627|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c: scope_hint: In function 'pktloc__create_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1625:12: warning[-Wanalyzer-malloc-leak]: leak of 'pktloc_alloc(64, yyscanner)'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1611:21: note: in expansion of macro 'yy_create_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1615:24: note: in expansion of macro 'yyalloc'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:2248:7: note: in expansion of macro 'yyalloc'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1615:24: note: in expansion of macro 'yyalloc'
# 1623|   	 * we need to put in 2 end-of-buffer characters.
# 1624|   	 */
# 1625|-> 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 1626|   	if ( ! b->yy_ch_buf )
# 1627|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c: scope_hint: In function 'pktloc__init_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1667:19: warning[-Wanalyzer-null-dereference]: dereference of NULL 'b'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1546:10: note: in expansion of macro 'yyrestart'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1551:16: note: in expansion of macro 'yyensure_buffer_stack'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1769:13: note: in expansion of macro 'yyensure_buffer_stack'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1551:16: note: in expansion of macro 'yyensure_buffer_stack'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1553:27: note: in expansion of macro 'yy_create_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1611:21: note: in expansion of macro 'yy_create_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1630:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1659:17: note: in expansion of macro 'yy_init_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1665:2: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1688:10: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1665:2: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1630:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1553:27: note: in expansion of macro 'yy_create_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1556:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1556:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1556:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1659:17: note: in expansion of macro 'yy_init_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1665:2: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1688:10: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1665:2: note: in expansion of macro 'yy_flush_buffer'
# 1665|   
# 1666|   	yy_flush_buffer( b , yyscanner);
# 1667|-> 
# 1668|   	b->yy_input_file = file;
# 1669|   	b->yy_fill_buffer = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c: scope_hint: In function 'pktloc__scan_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1885:25: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(n)'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1869:17: note: in expansion of macro 'yy_scan_bytes'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1878:24: note: in expansion of macro 'yyalloc'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c: scope_hint: In function 'pktloc__scan_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1887:6: note: in expansion of macro 'yy_scan_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1819:17: note: in expansion of macro 'yy_scan_buffer'
# 1883|   	for ( i = 0; i < _yybytes_len; ++i )
# 1884|   		buf[i] = yybytes[i];
# 1885|-> 
# 1886|   	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1887|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c: scope_hint: In function 'pktloc__scan_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1885:25: warning[-Wanalyzer-malloc-leak]: leak of 'pktloc_alloc(n,  yyscanner)'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1869:17: note: in expansion of macro 'yy_scan_bytes'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1878:24: note: in expansion of macro 'yyalloc'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:2248:7: note: in expansion of macro 'yyalloc'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1878:24: note: in expansion of macro 'yyalloc'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1887:6: note: in expansion of macro 'yy_scan_buffer'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_grammar.c:1819:17: note: in expansion of macro 'yy_scan_buffer'
# 1883|   	for ( i = 0; i < _yybytes_len; ++i )
# 1884|   		buf[i] = yybytes[i];
# 1885|-> 
# 1886|   	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1887|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c: scope_hint: In function 'pktloc_parse'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:391:21: warning[-Wanalyzer-malloc-leak]: leak of 'yyptr'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:92:40: note: in definition of macro 'YY_CAST'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:377:25: note: in expansion of macro 'YYMALLOC'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:1357:20: note: in expansion of macro 'YYSTACK_ALLOC'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:1408:16: note: in expansion of macro 'yylex'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:1430:17: note: in expansion of macro 'YYTRANSLATE'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:1408:16: note: in expansion of macro 'yylex'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:92:40: note: in definition of macro 'YY_CAST'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:377:25: note: in expansion of macro 'YYMALLOC'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:1357:20: note: in expansion of macro 'YYSTACK_ALLOC'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:439:9: note: in expansion of macro 'YYCOPY'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:1360:9: note: in expansion of macro 'YYSTACK_RELOCATE'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:92:40: note: in definition of macro 'YY_CAST'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:377:25: note: in expansion of macro 'YYMALLOC'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:1357:20: note: in expansion of macro 'YYSTACK_ALLOC'
#  389|   #  endif
#  390|   #  ifndef YYMALLOC
#  391|-> #   define YYMALLOC malloc
#  392|   #   if ! defined malloc && ! defined EXIT_SUCCESS
#  393|   void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def31]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:454:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'yyss'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:439:9: note: in expansion of macro 'YYCOPY'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:1360:9: note: in expansion of macro 'YYSTACK_RELOCATE'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:439:9: note: in expansion of macro 'YYCOPY'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:1360:9: note: in expansion of macro 'YYSTACK_RELOCATE'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:439:9: note: in expansion of macro 'YYCOPY'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/pktloc_syntax.c:1360:9: note: in expansion of macro 'YYSTACK_RELOCATE'
#  452|   #  if defined __GNUC__ && 1 < __GNUC__
#  453|   #   define YYCOPY(Dst, Src, Count) \
#  454|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  455|   #  else
#  456|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/qdisc/netem.c: scope_hint: In function 'rtnl_netem_set_delay_distribution'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/qdisc/netem.c:967:26: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&name, "re")'
#  965|   	for (i = 0; i < ARRAY_SIZE(test_path); i++) {
#  966|   		snprintf(name, NAME_MAX, "%s%s%s", test_path[i], dist_type, dist_suffix);
#  967|-> 		if ((f = fopen(name, "re")))
#  968|   			break;
#  969|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/qdisc/netem.c:967:26: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&name, "re")'
#  965|   	for (i = 0; i < ARRAY_SIZE(test_path); i++) {
#  966|   		snprintf(name, NAME_MAX, "%s%s%s", test_path[i], dist_type, dist_suffix);
#  967|-> 		if ((f = fopen(name, "re")))
#  968|   			break;
#  969|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/route_obj.c: scope_hint: In function 'rtnl_route_build_msg'
libnl3-3.11.0-build/libnl-3.11.0/lib/route/route_obj.c:1429:38: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
# 1427|   		struct rtnl_nexthop *nh;
# 1428|   		nh = rtnl_route_nexthop_n(route, 0);
# 1429|-> 		rtmsg.rtm_flags |= nh->rtnh_flags;
# 1430|   	}
# 1431|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
libnl3-3.11.0-build/libnl-3.11.0/lib/route/route_obj.c:1482:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
# 1480|   
# 1481|   		nh = rtnl_route_nexthop_n(route, 0);
# 1482|-> 		if (nh->rtnh_gateway)
# 1483|   			NLA_PUT_ADDR(msg, RTA_GATEWAY, nh->rtnh_gateway);
# 1484|   		if (nh->rtnh_ifindex)

Error: CPPCHECK_WARNING (CWE-401): [#def36]
libnl3-3.11.0-build/libnl-3.11.0/lib/utils.c:1053: error[memleak]: Memory leak: tl
# 1051|   	nl_list_add_tail(&tl->list, head);
# 1052|   
# 1053|-> 	return 0;
# 1054|   }
# 1055|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_MangledTypeQueryModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:640:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘iter’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:10694:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:10694:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:10694:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:3492:12: note: in expansion of macro ‘SWIG_TypeQuery’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:3492:12: note: in expansion of macro ‘SWIG_TypeQuery’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:3013:37: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:3013:37: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:3013:37: note: in expansion of macro ‘SWIG_GetModule’
#  638|     swig_module_info *iter = start;
#  639|     do {
#  640|->     if (iter->size) {
#  641|         size_t l = 0;
#  642|         size_t r = iter->size - 1;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def38]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1171:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12161:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12312:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11983:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11983:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12431:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:922:25: note: in expansion of macro ‘Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1638:3: note: in expansion of macro ‘SWIG_Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:924:25: note: in expansion of macro ‘Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12172:9: note: in expansion of macro ‘SWIG_Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12161:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1171:57: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12161:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1171:57: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12161:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
# 1169|   #endif
# 1170|   
# 1171|-> #define SWIG_InternalNewPointerObj(ptr, type, flags)	SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
# 1172|   
# 1173|   #define SWIG_CheckImplicit(ty)                          SWIG_Python_CheckImplicit(ty) 

Error: GCC_ANALYZER_WARNING (CWE-126): [#def39]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1179:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12312:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11983:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11983:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12431:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:922:25: note: in expansion of macro ‘Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1638:3: note: in expansion of macro ‘SWIG_Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:924:25: note: in expansion of macro ‘Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12172:9: note: in expansion of macro ‘SWIG_Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1179:57: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1179:57: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:15: note: in expansion of macro ‘SWIG_NewPackedObj’
# 1177|   /* for raw packed data */
# 1178|   #define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
# 1179|-> #define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
# 1180|   
# 1181|   /* for class or struct pointers */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SwigPyClientData_New’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1680:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
/usr/include/python3.13/Python.h:72: included_from: Included from here.
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:204: included_from: Included from here.
/usr/include/python3.13/tupleobject.h:27:18: note: in expansion of macro ‘PyType_FastSubclass’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1297:8: note: in expansion of macro ‘PyTuple_Check’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SwigPyClientData_New’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11213:49: note: in expansion of macro ‘SWIG_NewClientData’
# 1678|       SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
# 1679|       /* the klass element */
# 1680|->     data->klass = obj;
# 1681|       SWIG_Py_INCREF(data->klass);
# 1682|       /* the newraw method and newargs arguments used to create a new raw instance */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘pynl_get_cbinfo.part.0’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:3907:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘info’
# 3905|   
# 3906|   	info = calloc(1, sizeof(*info));
# 3907|-> 	info->cb = cb;
# 3908|   	list_add(&info->list, &callback_list);
# 3909|   	pynl_dbg("cb=%p: added %p\n", cb, info);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘nla_policy_array’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:4247:16: warning[-Wanalyzer-malloc-leak]: leak of ‘policies’
# 4245|   		PyList_SetItem(listobj, i, polobj);
# 4246|   	}
# 4247|-> 	return listobj;
# 4248|   }
# 4249|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘_wrap_nla_policy_type_get’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11071:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11066:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11066:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11066:10: note: in expansion of macro ‘SWIG_ConvertPtr’
#11069|     }
#11070|     arg1 = (struct nla_policy *)(argp1);
#11071|->   result = (uint16_t) ((arg1)->type);
#11072|     resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
#11073|     return resultobj;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘_wrap_nla_policy_minlen_get’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11125:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11120:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11120:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11120:10: note: in expansion of macro ‘SWIG_ConvertPtr’
#11123|     }
#11124|     arg1 = (struct nla_policy *)(argp1);
#11125|->   result = (uint16_t) ((arg1)->minlen);
#11126|     resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
#11127|     return resultobj;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘_wrap_nla_policy_maxlen_get’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11179:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11174:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11174:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11174:10: note: in expansion of macro ‘SWIG_ConvertPtr’
#11177|     }
#11178|     arg1 = (struct nla_policy *)(argp1);
#11179|->   result = (uint16_t) ((arg1)->maxlen);
#11180|     resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
#11181|     return resultobj;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def46]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12158:29: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12312:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11983:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11983:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12431:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:922:25: note: in expansion of macro ‘Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1638:3: note: in expansion of macro ‘SWIG_Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:924:25: note: in expansion of macro ‘Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12172:9: note: in expansion of macro ‘SWIG_Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12158:29: note: read of 4 bytes from after the end of ‘swig_const_table’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12158:29: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
#12156|       PyObject *obj = 0;
#12157|       size_t i;
#12158|->     for (i = 0; constants[i].type; ++i) {
#12159|         switch(constants[i].type) {
#12160|         case SWIG_PY_POINTER:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def47]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12161:78: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1171:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12312:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11983:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11983:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12431:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:922:25: note: in expansion of macro ‘Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1638:3: note: in expansion of macro ‘SWIG_Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:924:25: note: in expansion of macro ‘Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12172:9: note: in expansion of macro ‘SWIG_Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1171:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12161:78: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1171:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12161:78: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1171:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
#12159|         switch(constants[i].type) {
#12160|         case SWIG_PY_POINTER:
#12161|->         obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
#12162|           break;
#12163|         case SWIG_PY_BINARY:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def48]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:66: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1179:87: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12312:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11983:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11983:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12431:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:922:25: note: in expansion of macro ‘Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1638:3: note: in expansion of macro ‘SWIG_Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:924:25: note: in expansion of macro ‘Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12172:9: note: in expansion of macro ‘SWIG_Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1179:87: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:66: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1179:87: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:66: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1179:87: note: in definition of macro ‘SWIG_NewPackedObj’
#12162|           break;
#12163|         case SWIG_PY_BINARY:
#12164|->         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
#12165|           break;
#12166|         default:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def49]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:89: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1179:91: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12312:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11983:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:11983:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12431:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:922:25: note: in expansion of macro ‘Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1638:3: note: in expansion of macro ‘SWIG_Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:924:25: note: in expansion of macro ‘Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12172:9: note: in expansion of macro ‘SWIG_Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1179:91: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:89: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1179:91: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:12164:89: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/capi_wrap.c:1179:91: note: in definition of macro ‘SWIG_NewPackedObj’
#12162|           break;
#12163|         case SWIG_PY_BINARY:
#12164|->         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
#12165|           break;
#12166|         default:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def50]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1171:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5347:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5498:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5169:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5169:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5617:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:922:25: note: in expansion of macro ‘Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1638:3: note: in expansion of macro ‘SWIG_Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:924:25: note: in expansion of macro ‘Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5358:9: note: in expansion of macro ‘SWIG_Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5347:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1171:57: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5347:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1171:57: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5347:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
# 1169|   #endif
# 1170|   
# 1171|-> #define SWIG_InternalNewPointerObj(ptr, type, flags)	SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
# 1172|   
# 1173|   #define SWIG_CheckImplicit(ty)                          SWIG_Python_CheckImplicit(ty) 

Error: GCC_ANALYZER_WARNING (CWE-126): [#def51]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1179:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5498:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5169:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5169:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5617:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:922:25: note: in expansion of macro ‘Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1638:3: note: in expansion of macro ‘SWIG_Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:924:25: note: in expansion of macro ‘Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5358:9: note: in expansion of macro ‘SWIG_Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1179:57: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1179:57: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:15: note: in expansion of macro ‘SWIG_NewPackedObj’
# 1177|   /* for raw packed data */
# 1178|   #define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
# 1179|-> #define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
# 1180|   
# 1181|   /* for class or struct pointers */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SwigPyClientData_New’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1680:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
/usr/include/python3.13/Python.h:72: included_from: Included from here.
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:204: included_from: Included from here.
/usr/include/python3.13/tupleobject.h:27:18: note: in expansion of macro ‘PyType_FastSubclass’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1297:8: note: in expansion of macro ‘PyTuple_Check’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SwigPyClientData_New’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:4860:49: note: in expansion of macro ‘SWIG_NewClientData’
# 1678|       SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
# 1679|       /* the klass element */
# 1680|->     data->klass = obj;
# 1681|       SWIG_Py_INCREF(data->klass);
# 1682|       /* the newraw method and newargs arguments used to create a new raw instance */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘_wrap_nla_policy_type_get’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:4718:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:4713:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:4713:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:4713:10: note: in expansion of macro ‘SWIG_ConvertPtr’
# 4716|     }
# 4717|     arg1 = (struct nla_policy *)(argp1);
# 4718|->   result = (uint16_t) ((arg1)->type);
# 4719|     resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
# 4720|     return resultobj;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘_wrap_nla_policy_minlen_get’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:4772:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:4767:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:4767:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:4767:10: note: in expansion of macro ‘SWIG_ConvertPtr’
# 4770|     }
# 4771|     arg1 = (struct nla_policy *)(argp1);
# 4772|->   result = (uint16_t) ((arg1)->minlen);
# 4773|     resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
# 4774|     return resultobj;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘_wrap_nla_policy_maxlen_get’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:4826:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:4821:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:4821:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:4821:10: note: in expansion of macro ‘SWIG_ConvertPtr’
# 4824|     }
# 4825|     arg1 = (struct nla_policy *)(argp1);
# 4826|->   result = (uint16_t) ((arg1)->maxlen);
# 4827|     resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
# 4828|     return resultobj;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def56]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5344:29: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5498:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5169:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5169:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5617:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:922:25: note: in expansion of macro ‘Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1638:3: note: in expansion of macro ‘SWIG_Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:924:25: note: in expansion of macro ‘Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5358:9: note: in expansion of macro ‘SWIG_Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5344:29: note: read of 4 bytes from after the end of ‘swig_const_table’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5344:29: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
# 5342|       PyObject *obj = 0;
# 5343|       size_t i;
# 5344|->     for (i = 0; constants[i].type; ++i) {
# 5345|         switch(constants[i].type) {
# 5346|         case SWIG_PY_POINTER:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def57]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5347:78: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1171:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5498:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5169:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5169:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5617:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:922:25: note: in expansion of macro ‘Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1638:3: note: in expansion of macro ‘SWIG_Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:924:25: note: in expansion of macro ‘Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5358:9: note: in expansion of macro ‘SWIG_Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1171:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5347:78: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1171:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5347:78: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1171:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
# 5345|         switch(constants[i].type) {
# 5346|         case SWIG_PY_POINTER:
# 5347|->         obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
# 5348|           break;
# 5349|         case SWIG_PY_BINARY:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def58]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:66: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1179:87: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5498:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5169:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5169:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5617:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:922:25: note: in expansion of macro ‘Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1638:3: note: in expansion of macro ‘SWIG_Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:924:25: note: in expansion of macro ‘Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5358:9: note: in expansion of macro ‘SWIG_Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1179:87: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:66: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1179:87: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:66: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1179:87: note: in definition of macro ‘SWIG_NewPackedObj’
# 5348|           break;
# 5349|         case SWIG_PY_BINARY:
# 5350|->         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
# 5351|           break;
# 5352|         default:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def59]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:89: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1179:91: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5498:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5169:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5169:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5617:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:922:25: note: in expansion of macro ‘Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1638:3: note: in expansion of macro ‘SWIG_Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:924:25: note: in expansion of macro ‘Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5358:9: note: in expansion of macro ‘SWIG_Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1179:91: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:89: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1179:91: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:5350:89: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/genl/capi_wrap.c:1179:91: note: in definition of macro ‘SWIG_NewPackedObj’
# 5348|           break;
# 5349|         case SWIG_PY_BINARY:
# 5350|->         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
# 5351|           break;
# 5352|         default:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_MangledTypeQueryModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:640:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘iter’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:10418:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:10418:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1162:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:10418:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:3485:12: note: in expansion of macro ‘SWIG_TypeQuery’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:3485:12: note: in expansion of macro ‘SWIG_TypeQuery’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:3013:37: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:3013:37: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:3013:37: note: in expansion of macro ‘SWIG_GetModule’
#  638|     swig_module_info *iter = start;
#  639|     do {
#  640|->     if (iter->size) {
#  641|         size_t l = 0;
#  642|         size_t r = iter->size - 1;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def61]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1171:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12100:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12251:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:11922:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:11922:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12370:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:922:25: note: in expansion of macro ‘Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1638:3: note: in expansion of macro ‘SWIG_Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:924:25: note: in expansion of macro ‘Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12111:9: note: in expansion of macro ‘SWIG_Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12100:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1171:57: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12100:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1171:57: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12100:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
# 1169|   #endif
# 1170|   
# 1171|-> #define SWIG_InternalNewPointerObj(ptr, type, flags)	SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
# 1172|   
# 1173|   #define SWIG_CheckImplicit(ty)                          SWIG_Python_CheckImplicit(ty) 

Error: GCC_ANALYZER_WARNING (CWE-126): [#def62]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1179:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12251:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:11922:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:11922:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12370:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:922:25: note: in expansion of macro ‘Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1638:3: note: in expansion of macro ‘SWIG_Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:924:25: note: in expansion of macro ‘Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12111:9: note: in expansion of macro ‘SWIG_Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1179:57: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1179:57: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:15: note: in expansion of macro ‘SWIG_NewPackedObj’
# 1177|   /* for raw packed data */
# 1178|   #define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
# 1179|-> #define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
# 1180|   
# 1181|   /* for class or struct pointers */

Error: GCC_ANALYZER_WARNING (CWE-126): [#def63]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12097:29: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12251:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:11922:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:11922:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12370:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:15: note: in expansion of macro ‘SWIG_NewPackedObj’
/usr/include/python3.13/Python.h:72: included_from: Included from here.
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:204: included_from: Included from here.
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:922:25: note: in expansion of macro ‘Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1638:3: note: in expansion of macro ‘SWIG_Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:924:25: note: in expansion of macro ‘Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12111:9: note: in expansion of macro ‘SWIG_Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12097:29: note: read of 4 bytes from after the end of ‘swig_const_table’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12097:29: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
#12095|       PyObject *obj = 0;
#12096|       size_t i;
#12097|->     for (i = 0; constants[i].type; ++i) {
#12098|         switch(constants[i].type) {
#12099|         case SWIG_PY_POINTER:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def64]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12100:78: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1171:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12251:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:11922:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:11922:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12370:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:922:25: note: in expansion of macro ‘Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1638:3: note: in expansion of macro ‘SWIG_Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:924:25: note: in expansion of macro ‘Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12111:9: note: in expansion of macro ‘SWIG_Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1171:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12100:78: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1171:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12100:78: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1171:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
#12098|         switch(constants[i].type) {
#12099|         case SWIG_PY_POINTER:
#12100|->         obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
#12101|           break;
#12102|         case SWIG_PY_BINARY:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def65]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:66: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1179:87: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12251:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:11922:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:11922:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12370:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:922:25: note: in expansion of macro ‘Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1638:3: note: in expansion of macro ‘SWIG_Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:924:25: note: in expansion of macro ‘Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12111:9: note: in expansion of macro ‘SWIG_Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1179:87: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:66: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1179:87: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:66: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1179:87: note: in definition of macro ‘SWIG_NewPackedObj’
#12101|           break;
#12102|         case SWIG_PY_BINARY:
#12103|->         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
#12104|           break;
#12105|         default:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def66]
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:89: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1179:91: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12251:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:11922:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:11922:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12370:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:922:25: note: in expansion of macro ‘Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1638:3: note: in expansion of macro ‘SWIG_Py_INCREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:924:25: note: in expansion of macro ‘Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12111:9: note: in expansion of macro ‘SWIG_Py_DECREF’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1179:91: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:89: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1179:91: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:12103:89: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.11.0-build/libnl-3.11.0/python/netlink/route/capi_wrap.c:1179:91: note: in definition of macro ‘SWIG_NewPackedObj’
#12101|           break;
#12102|         case SWIG_PY_BINARY:
#12103|->         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
#12104|           break;
#12105|         default:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
libnl3-3.11.0-build/libnl-3.11.0/src/nl-class-add.c: scope_hint: In function ‘main’
libnl3-3.11.0-build/libnl-3.11.0/src/nl-class-add.c:109:32: warning[-Wanalyzer-malloc-leak]: leak of ‘id’
#  107|   		case 'd': nl_cli_tc_parse_dev(tc, link_cache, optarg); break;
#  108|   		case 'p': nl_cli_tc_parse_parent(tc, optarg); break;
#  109|-> 		case 'i': id = strdup(optarg); break;
#  110|   		case ARG_UPDATE: flags = NLM_F_CREATE; break;
#  111|   		case ARG_UPDATE_ONLY: flags = 0; break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
libnl3-3.11.0-build/libnl-3.11.0/src/nl-qdisc-add.c: scope_hint: In function ‘main’
libnl3-3.11.0-build/libnl-3.11.0/src/nl-qdisc-add.c:102:32: warning[-Wanalyzer-malloc-leak]: leak of ‘id’
#  100|   		case 'd': nl_cli_tc_parse_dev(tc, link_cache, optarg); break;
#  101|   		case 'p': nl_cli_tc_parse_parent(tc, optarg); break;
#  102|-> 		case 'i': id = strdup(optarg); break;
#  103|   		case ARG_UPDATE: flags = NLM_F_CREATE; break;
#  104|   		case ARG_REPLACE: flags = NLM_F_CREATE | NLM_F_REPLACE; break;

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-142.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibnl3-3.11.0-1.fc42
store-results-to/tmp/tmprhuth46x/libnl3-3.11.0-1.fc42.tar.xz
time-created2024-11-13 01:37:22
time-finished2024-11-13 01:40:52
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmprhuth46x/libnl3-3.11.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmprhuth46x/libnl3-3.11.0-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9