libnl3-3.9.0-4.fc41
List of Defects
Error: GCC_ANALYZER_WARNING (CWE-127): [#def1]
libnl3-3.9.0-build/libnl-3.9.0/include/netlink/list.h:57:20: warning[-Wanalyzer-out-of-bounds]: heap-based buffer under-read
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch.c: scope_hint: In function 'free_ematch_list'
libnl3-3.9.0-build/libnl-3.9.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): [#def2]
libnl3-3.9.0-build/libnl-3.9.0/include/netlink/list.h:57:20: warning[-Wanalyzer-use-after-free]: use after 'free' of 'pos'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch.c: scope_hint: In function 'free_ematch_list'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch.c:265:9: note: in expansion of macro 'nl_list_for_each_entry_safe'
libnl3-3.9.0-build/libnl-3.9.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-127): [#def3]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch.c: scope_hint: In function 'free_ematch_list'
libnl3-3.9.0-build/libnl-3.9.0/include/netlink/list.h:61:50: warning[-Wanalyzer-out-of-bounds]: heap-based buffer under-read
libnl3-3.9.0-build/libnl-3.9.0/include/netlink/list.h:65:9: note: in expansion of macro 'nl_container_of'
libnl3-3.9.0-build/libnl-3.9.0/include/netlink/list.h:85:20: note: in expansion of macro 'nl_list_entry'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch.c:265:9: note: in expansion of macro 'nl_list_for_each_entry_safe'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch.c:265:9: note: in expansion of macro 'nl_list_for_each_entry_safe'
libnl3-3.9.0-build/libnl-3.9.0/include/netlink/list.h:65:9: note: in expansion of macro 'nl_container_of'
libnl3-3.9.0-build/libnl-3.9.0/include/netlink/list.h:85:20: note: in expansion of macro 'nl_list_entry'
libnl3-3.9.0-build/libnl-3.9.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: CPPCHECK_WARNING: [#def4]
libnl3-3.9.0-build/libnl-3.9.0/lib/addr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def5]
libnl3-3.9.0-build/libnl-3.9.0/lib/attr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def6]
libnl3-3.9.0-build/libnl-3.9.0/lib/cache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def7]
libnl3-3.9.0-build/libnl-3.9.0/lib/cache.c:350:2: warning[core.NullDereference]: Dereference of null pointer
# 348| NL_DBG(2, "Cloning %p into %p\n", cache, clone);
# 349|
# 350|-> nl_list_for_each_entry(obj, &cache->c_items, ce_list)
# 351| nl_cache_add(clone, obj);
# 352|
Error: CLANG_WARNING: [#def8]
libnl3-3.9.0-build/libnl-3.9.0/lib/cache.c:373:2: warning[core.NullDereference]: Dereference of null pointer
# 371| NL_DBG(2, "Clearing cache %p <%s>...\n", cache, nl_cache_name(cache));
# 372|
# 373|-> nl_list_for_each_entry_safe(obj, tmp, &cache->c_items, ce_list)
# 374| nl_cache_remove(obj);
# 375| }
Error: CPPCHECK_WARNING: [#def9]
libnl3-3.9.0-build/libnl-3.9.0/lib/cache_mngr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def10]
libnl3-3.9.0-build/libnl-3.9.0/lib/cache_mngr.c:636:7: warning[core.NullDereference]: Dereference of null pointer
# 634|
# 635| for (i = 0; i < mngr->cm_nassocs; i++) {
# 636|-> if (mngr->cm_assocs[i].ca_cache) {
# 637| nl_cache_mngt_unprovide(mngr->cm_assocs[i].ca_cache);
# 638| nl_cache_free(mngr->cm_assocs[i].ca_cache);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
libnl3-3.9.0-build/libnl-3.9.0/lib/cache_mngr.c: scope_hint: In function 'nl_cache_mngr_free'
libnl3-3.9.0-build/libnl-3.9.0/lib/cache_mngr.c:636:39: warning[-Wanalyzer-null-dereference]: dereference of NULL '*mngr.cm_assocs + (long unsigned int)i * 32'
# 634|
# 635| for (i = 0; i < mngr->cm_nassocs; i++) {
# 636|-> if (mngr->cm_assocs[i].ca_cache) {
# 637| nl_cache_mngt_unprovide(mngr->cm_assocs[i].ca_cache);
# 638| nl_cache_free(mngr->cm_assocs[i].ca_cache);
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
libnl3-3.9.0-build/libnl-3.9.0/lib/genl/family.c: scope_hint: In function 'genl_family_add_op'
libnl3-3.9.0-build/libnl-3.9.0/lib/genl/family.c:369:25: warning[-Wanalyzer-malloc-leak]: leak of 'op'
libnl3-3.9.0-build/libnl-3.9.0/include/netlink/utils.h:10: included_from: Included from here.
libnl3-3.9.0-build/libnl-3.9.0/include/netlink/object.h:10: included_from: Included from here.
libnl3-3.9.0-build/libnl-3.9.0/include/netlink/netlink.h:29: included_from: Included from here.
libnl3-3.9.0-build/libnl-3.9.0/lib/genl/family.c:17: included_from: Included from here.
libnl3-3.9.0-build/libnl-3.9.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): [#def13]
libnl3-3.9.0-build/libnl-3.9.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): [#def14]
libnl3-3.9.0-build/libnl-3.9.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: CPPCHECK_WARNING: [#def15]
libnl3-3.9.0-build/libnl-3.9.0/lib/genl/mngt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
libnl3-3.9.0-build/libnl-3.9.0/lib/hashtable.c: scope_hint: In function 'nl_hash_table_add'
libnl3-3.9.0-build/libnl-3.9.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: CPPCHECK_WARNING: [#def17]
libnl3-3.9.0-build/libnl-3.9.0/lib/idiag/idiag_msg_obj.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def18]
libnl3-3.9.0-build/libnl-3.9.0/lib/msg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
libnl3-3.9.0-build/libnl-3.9.0/lib/msg.c:546:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'msg'
libnl3-3.9.0-build/libnl-3.9.0/lib/msg.c: scope_hint: In function 'print_hdr'
libnl3-3.9.0-build/libnl-3.9.0/lib/msg.c: scope_hint: In function 'print_hdr'
libnl3-3.9.0-build/libnl-3.9.0/lib/msg.c: scope_hint: In function 'print_hdr'
# 544| struct nlmsghdr *nlmsg_hdr(struct nl_msg *n)
# 545| {
# 546|-> return n->nm_nlh;
# 547| }
# 548|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
libnl3-3.9.0-build/libnl-3.9.0/lib/msg.c: scope_hint: In function 'nlmsg_hdr'
libnl3-3.9.0-build/libnl-3.9.0/lib/msg.c:546:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'n'
# 544| struct nlmsghdr *nlmsg_hdr(struct nl_msg *n)
# 545| {
# 546|-> return n->nm_nlh;
# 547| }
# 548|
Error: CLANG_WARNING: [#def21]
libnl3-3.9.0-build/libnl-3.9.0/lib/msg.c:934:1: warning[unix.Malloc]: Potential leak of memory pointed to by 'errmsg'
# 932| nlmsg_free(errmsg);
# 933| }
# 934|-> }
# 935|
# 936| static void print_msg(struct nl_msg *msg, FILE *ofd, struct nlmsghdr *hdr)
Error: CPPCHECK_WARNING: [#def22]
libnl3-3.9.0-build/libnl-3.9.0/lib/netfilter/ct.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def23]
libnl3-3.9.0-build/libnl-3.9.0/lib/netfilter/ct.c:606:8: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 604| return err;
# 605|
# 606|-> err = nl_send_auto_complete(sk, msg);
# 607| nlmsg_free(msg);
# 608| if (err < 0)
Error: CLANG_WARNING: [#def24]
libnl3-3.9.0-build/libnl-3.9.0/lib/netfilter/ct.c:628:8: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 626| return err;
# 627|
# 628|-> err = nl_send_auto_complete(sk, msg);
# 629| nlmsg_free(msg);
# 630| if (err < 0)
Error: CLANG_WARNING: [#def25]
libnl3-3.9.0-build/libnl-3.9.0/lib/netfilter/ct.c:650:8: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 648| return err;
# 649|
# 650|-> err = nl_send_auto_complete(sk, msg);
# 651| nlmsg_free(msg);
# 652| if (err < 0)
Error: CPPCHECK_WARNING: [#def26]
libnl3-3.9.0-build/libnl-3.9.0/lib/netfilter/ct_obj.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def27]
libnl3-3.9.0-build/libnl-3.9.0/lib/netfilter/exp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def28]
libnl3-3.9.0-build/libnl-3.9.0/lib/netfilter/exp_obj.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def29]
libnl3-3.9.0-build/libnl-3.9.0/lib/netfilter/log_msg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def30]
libnl3-3.9.0-build/libnl-3.9.0/lib/netfilter/log_msg_obj.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def31]
libnl3-3.9.0-build/libnl-3.9.0/lib/netfilter/log_obj.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def32]
libnl3-3.9.0-build/libnl-3.9.0/lib/netfilter/queue_msg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def33]
libnl3-3.9.0-build/libnl-3.9.0/lib/netfilter/queue_msg_obj.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def34]
libnl3-3.9.0-build/libnl-3.9.0/lib/nl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def35]
libnl3-3.9.0-build/libnl-3.9.0/lib/nl.c:1008:3: warning[deadcode.DeadStores]: Value stored to 'err' is never read
# 1006| }
# 1007| skip:
# 1008|-> err = 0;
# 1009| hdr = nlmsg_next(hdr, &n);
# 1010| }
Error: CPPCHECK_WARNING: [#def36]
libnl3-3.9.0-build/libnl-3.9.0/lib/object.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
libnl3-3.9.0-build/libnl-3.9.0/lib/object.c: scope_hint: In function 'nl_object_clone'
libnl3-3.9.0-build/libnl-3.9.0/lib/object.c:59:16: warning[-Wanalyzer-malloc-leak]: leak of 'nl_object_alloc(*obj.ce_ops)'
libnl3-3.9.0-build/libnl-3.9.0/lib/object.c: scope_hint: In function 'nl_object_clone'
libnl3-3.9.0-build/libnl-3.9.0/lib/object.c:35: included_from: Included from here.
libnl3-3.9.0-build/libnl-3.9.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: CPPCHECK_WARNING: [#def38]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/act.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def39]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/act/nat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def40]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/act/skbedit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def41]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/act/vlan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def42]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/addr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def43]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/classid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/classid.c:57:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'str'
libnl3-3.9.0-build/libnl-3.9.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: CPPCHECK_WARNING: [#def45]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/basic.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def46]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-126): [#def47]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch.c: scope_hint: In function 'rtnl_ematch_free'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch.c:163:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch.c:265:9: note: in expansion of macro 'nl_list_for_each_entry_safe'
libnl3-3.9.0-build/libnl-3.9.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: CLANG_WARNING: [#def48]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch.c:164:2: warning[unix.Malloc]: Argument to free() is offset by 8 bytes from the start of memory allocated by calloc()
# 162| rtnl_ematch_unlink(ematch);
# 163| free(ematch->e_data);
# 164|-> free(ematch);
# 165| }
# 166|
Error: CLANG_WARNING: [#def49]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch.c:265:2: warning[core.NullDereference]: Dereference of null pointer
# 263| struct rtnl_ematch *pos, *next;
# 264|
# 265|-> nl_list_for_each_entry_safe(pos, next, head, e_list) {
# 266| if (!nl_list_empty(&pos->e_childs))
# 267| free_ematch_list(&pos->e_childs);
Error: CPPCHECK_WARNING: [#def50]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch/meta.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def51]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c: scope_hint: In function 'ematch__create_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2203:12: warning[-Wanalyzer-malloc-leak]: leak of 'ematch_alloc(64, yyscanner)'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2189:21: note: in expansion of macro 'yy_create_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2193:24: note: in expansion of macro 'yyalloc'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2814:7: note: in expansion of macro 'yyalloc'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2193:24: note: in expansion of macro 'yyalloc'
# 2201| * we need to put in 2 end-of-buffer characters.
# 2202| */
# 2203|-> b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 2204| if ( ! b->yy_ch_buf )
# 2205| YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c: scope_hint: In function 'ematch__create_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2203:12: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(64)'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2189:21: note: in expansion of macro 'yy_create_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2193:24: note: in expansion of macro 'yyalloc'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c: scope_hint: In function 'ematch__create_buffer'
# 2201| * we need to put in 2 end-of-buffer characters.
# 2202| */
# 2203|-> b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 2204| if ( ! b->yy_ch_buf )
# 2205| YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c: scope_hint: In function 'ematch__init_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2245:19: warning[-Wanalyzer-null-dereference]: dereference of NULL 'b'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2124:10: note: in expansion of macro 'yyrestart'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2129:16: note: in expansion of macro 'yyensure_buffer_stack'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2347:13: note: in expansion of macro 'yyensure_buffer_stack'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2129:16: note: in expansion of macro 'yyensure_buffer_stack'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2131:27: note: in expansion of macro 'yy_create_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2189:21: note: in expansion of macro 'yy_create_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2208:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2237:17: note: in expansion of macro 'yy_init_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2243:2: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2266:10: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2243:2: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2208:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2131:27: note: in expansion of macro 'yy_create_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2134:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2134:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2134:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2237:17: note: in expansion of macro 'yy_init_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2243:2: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2266:10: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2243:2: note: in expansion of macro 'yy_flush_buffer'
# 2243|
# 2244| yy_flush_buffer( b , yyscanner);
# 2245|->
# 2246| b->yy_input_file = file;
# 2247| b->yy_fill_buffer = 1;
Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c: scope_hint: In function 'ematch__scan_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2463:25: warning[-Wanalyzer-malloc-leak]: leak of 'ematch_alloc(n, yyscanner)'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2447:17: note: in expansion of macro 'yy_scan_bytes'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2456:24: note: in expansion of macro 'yyalloc'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2814:7: note: in expansion of macro 'yyalloc'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2456:24: note: in expansion of macro 'yyalloc'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2465:6: note: in expansion of macro 'yy_scan_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2397:17: note: in expansion of macro 'yy_scan_buffer'
# 2461| for ( i = 0; i < _yybytes_len; ++i )
# 2462| buf[i] = yybytes[i];
# 2463|->
# 2464| buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 2465|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c: scope_hint: In function 'ematch__scan_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2463:25: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(n)'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2447:17: note: in expansion of macro 'yy_scan_bytes'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2456:24: note: in expansion of macro 'yyalloc'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c: scope_hint: In function 'ematch__scan_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2465:6: note: in expansion of macro 'yy_scan_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_grammar.c:2397:17: note: in expansion of macro 'yy_scan_buffer'
# 2461| for ( i = 0; i < _yybytes_len; ++i )
# 2462| buf[i] = yybytes[i];
# 2463|->
# 2464| buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 2465|
Error: CPPCHECK_WARNING: [#def57]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c: scope_hint: In function 'ematch_parse'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:482:21: warning[-Wanalyzer-malloc-leak]: leak of 'yyptr'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:104:40: note: in definition of macro 'YY_CAST'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:468:25: note: in expansion of macro 'YYMALLOC'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:1475:20: note: in expansion of macro 'YYSTACK_ALLOC'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:1524:16: note: in expansion of macro 'yylex'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:1545:17: note: in expansion of macro 'YYTRANSLATE'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:1524:16: note: in expansion of macro 'yylex'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:104:40: note: in definition of macro 'YY_CAST'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:468:25: note: in expansion of macro 'YYMALLOC'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:1475:20: note: in expansion of macro 'YYSTACK_ALLOC'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:527:9: note: in expansion of macro 'YYCOPY'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:1478:9: note: in expansion of macro 'YYSTACK_RELOCATE'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:104:40: note: in definition of macro 'YY_CAST'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:468:25: note: in expansion of macro 'YYMALLOC'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:1475:20: note: in expansion of macro 'YYSTACK_ALLOC'
# 480| # endif
# 481| # ifndef YYMALLOC
# 482|-> # define YYMALLOC malloc
# 483| # if ! defined malloc && ! defined EXIT_SUCCESS
# 484| void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
Error: GCC_ANALYZER_WARNING (CWE-457): [#def59]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:542:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'yyss'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:527:9: note: in expansion of macro 'YYCOPY'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:1478:9: note: in expansion of macro 'YYSTACK_RELOCATE'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:527:9: note: in expansion of macro 'YYCOPY'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:1478:9: note: in expansion of macro 'YYSTACK_RELOCATE'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:527:9: note: in expansion of macro 'YYCOPY'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/ematch_syntax.c:1478:9: note: in expansion of macro 'YYSTACK_RELOCATE'
# 540| # if defined __GNUC__ && 1 < __GNUC__
# 541| # define YYCOPY(Dst, Src, Count) \
# 542|-> __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
# 543| # else
# 544| # define YYCOPY(Dst, Src, Count) \
Error: CPPCHECK_WARNING: [#def60]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/flower.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def61]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/fw.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def62]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/mall.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def63]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/u32.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def64]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/u32.c:312:6: warning[core.NullDereference]: Access to field 'hmask' results in a dereference of a null pointer (loaded from variable '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-476): [#def65]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/cls/u32.c: scope_hint: In function 'print_selector'
libnl3-3.9.0-build/libnl-3.9.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: CPPCHECK_WARNING: [#def66]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/link.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def67]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/link/bridge.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def68]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/link/can.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def69]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/link/geneve.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def70]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/link/macsec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def71]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/link/macvlan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/link/macvlan.c: scope_hint: In function 'macvlan_clone'
libnl3-3.9.0-build/libnl-3.9.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): [#def73]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/link/macvlan.c: scope_hint: In function 'rtnl_link_macvlan_add_macaddr'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/link/macvlan.c:590:23: warning[-Wanalyzer-malloc-leak]: leak of 'mvi_macaddr'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/link/macvlan.c:566:9: note: in expansion of macro 'IS_MACVLAN_LINK_ASSERT'
# 588| mvi->mvi_maccount++;
# 589|
# 590|-> mvi->mvi_mask |= MACVLAN_HAS_MACADDR;
# 591|
# 592| return 0;
Error: CPPCHECK_WARNING: [#def74]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/link/sriov.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def75]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/link/vlan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def76]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/link/vxlan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def77]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/mdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def78]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/neigh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def79]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/neightbl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def80]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/netconf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def81]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/nh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def82]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c: scope_hint: In function 'pktloc__create_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1623:12: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(64)'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1609:21: note: in expansion of macro 'yy_create_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1613:24: note: in expansion of macro 'yyalloc'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c: scope_hint: In function 'pktloc__create_buffer'
# 1621| * we need to put in 2 end-of-buffer characters.
# 1622| */
# 1623|-> b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 1624| if ( ! b->yy_ch_buf )
# 1625| YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c: scope_hint: In function 'pktloc__create_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1623:12: warning[-Wanalyzer-malloc-leak]: leak of 'pktloc_alloc(64, yyscanner)'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1609:21: note: in expansion of macro 'yy_create_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1613:24: note: in expansion of macro 'yyalloc'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:2246:7: note: in expansion of macro 'yyalloc'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1613:24: note: in expansion of macro 'yyalloc'
# 1621| * we need to put in 2 end-of-buffer characters.
# 1622| */
# 1623|-> b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 1624| if ( ! b->yy_ch_buf )
# 1625| YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
Error: GCC_ANALYZER_WARNING (CWE-476): [#def85]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c: scope_hint: In function 'pktloc__init_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1665:19: warning[-Wanalyzer-null-dereference]: dereference of NULL 'b'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1544:10: note: in expansion of macro 'yyrestart'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1549:16: note: in expansion of macro 'yyensure_buffer_stack'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1767:13: note: in expansion of macro 'yyensure_buffer_stack'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1549:16: note: in expansion of macro 'yyensure_buffer_stack'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1551:27: note: in expansion of macro 'yy_create_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1609:21: note: in expansion of macro 'yy_create_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1628:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1657:17: note: in expansion of macro 'yy_init_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1663:2: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1686:10: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1663:2: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1628:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1551:27: note: in expansion of macro 'yy_create_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1554:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1554:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1554:2: note: in expansion of macro 'yy_init_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1657:17: note: in expansion of macro 'yy_init_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1663:2: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1686:10: note: in expansion of macro 'yy_flush_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1663:2: note: in expansion of macro 'yy_flush_buffer'
# 1663|
# 1664| yy_flush_buffer( b , yyscanner);
# 1665|->
# 1666| b->yy_input_file = file;
# 1667| b->yy_fill_buffer = 1;
Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c: scope_hint: In function 'pktloc__scan_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1883:25: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(n)'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1867:17: note: in expansion of macro 'yy_scan_bytes'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1876:24: note: in expansion of macro 'yyalloc'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c: scope_hint: In function 'pktloc__scan_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1885:6: note: in expansion of macro 'yy_scan_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1817:17: note: in expansion of macro 'yy_scan_buffer'
# 1881| for ( i = 0; i < _yybytes_len; ++i )
# 1882| buf[i] = yybytes[i];
# 1883|->
# 1884| buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1885|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c: scope_hint: In function 'pktloc__scan_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1883:25: warning[-Wanalyzer-malloc-leak]: leak of 'pktloc_alloc(n, yyscanner)'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1867:17: note: in expansion of macro 'yy_scan_bytes'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1876:24: note: in expansion of macro 'yyalloc'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:2246:7: note: in expansion of macro 'yyalloc'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1876:24: note: in expansion of macro 'yyalloc'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1885:6: note: in expansion of macro 'yy_scan_buffer'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_grammar.c:1817:17: note: in expansion of macro 'yy_scan_buffer'
# 1881| for ( i = 0; i < _yybytes_len; ++i )
# 1882| buf[i] = yybytes[i];
# 1883|->
# 1884| buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1885|
Error: CPPCHECK_WARNING: [#def88]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c: scope_hint: In function 'pktloc_parse'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:389:21: warning[-Wanalyzer-malloc-leak]: leak of 'yyptr'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:90:40: note: in definition of macro 'YY_CAST'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:375:25: note: in expansion of macro 'YYMALLOC'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:1355:20: note: in expansion of macro 'YYSTACK_ALLOC'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:1406:16: note: in expansion of macro 'yylex'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:1428:17: note: in expansion of macro 'YYTRANSLATE'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:1406:16: note: in expansion of macro 'yylex'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:90:40: note: in definition of macro 'YY_CAST'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:375:25: note: in expansion of macro 'YYMALLOC'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:1355:20: note: in expansion of macro 'YYSTACK_ALLOC'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:437:9: note: in expansion of macro 'YYCOPY'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:1358:9: note: in expansion of macro 'YYSTACK_RELOCATE'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:90:40: note: in definition of macro 'YY_CAST'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:375:25: note: in expansion of macro 'YYMALLOC'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:1355:20: note: in expansion of macro 'YYSTACK_ALLOC'
# 387| # endif
# 388| # ifndef YYMALLOC
# 389|-> # define YYMALLOC malloc
# 390| # if ! defined malloc && ! defined EXIT_SUCCESS
# 391| void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
Error: GCC_ANALYZER_WARNING (CWE-457): [#def90]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:452:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'yyss'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:437:9: note: in expansion of macro 'YYCOPY'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:1358:9: note: in expansion of macro 'YYSTACK_RELOCATE'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:437:9: note: in expansion of macro 'YYCOPY'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:1358:9: note: in expansion of macro 'YYSTACK_RELOCATE'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:437:9: note: in expansion of macro 'YYCOPY'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/pktloc_syntax.c:1358:9: note: in expansion of macro 'YYSTACK_RELOCATE'
# 450| # if defined __GNUC__ && 1 < __GNUC__
# 451| # define YYCOPY(Dst, Src, Count) \
# 452|-> __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
# 453| # else
# 454| # define YYCOPY(Dst, Src, Count) \
Error: CPPCHECK_WARNING: [#def91]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/qdisc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def92]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/qdisc/fq_codel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def93]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/qdisc/htb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def94]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/qdisc/mqprio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def95]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/qdisc/netem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def96]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/qdisc/netem.c: scope_hint: In function 'rtnl_netem_set_delay_distribution'
libnl3-3.9.0-build/libnl-3.9.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): [#def97]
libnl3-3.9.0-build/libnl-3.9.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: COMPILER_WARNING: [#def98]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/qdisc/netem.c: scope_hint: In function 'rtnl_netem_set_delay_distribution'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/qdisc/netem.c:975:39: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
# 975 | line = (char *) calloc(sizeof(char), len + 1);
# | ^~~~
libnl3-3.9.0-build/libnl-3.9.0/lib/route/qdisc/netem.c:975:39: note: earlier argument should specify number of elements, later size of each element
# 973|
# 974| data = (int16_t *) calloc(MAXDIST, sizeof(int16_t));
# 975|-> line = (char *) calloc(sizeof(char), len + 1);
# 976| if (!data || !line) {
# 977| fclose(f);
Error: CLANG_WARNING: [#def99]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/qdisc/netem.c:977:6: warning[unix.Malloc]: Potential leak of memory pointed to by 'data'
# 975| line = (char *) calloc(sizeof(char), len + 1);
# 976| if (!data || !line) {
# 977|-> fclose(f);
# 978| return -NLE_NOMEM;
# 979| }
Error: CLANG_WARNING: [#def100]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/qdisc/netem.c:977:6: warning[unix.Malloc]: Potential leak of memory pointed to by 'line'
# 975| line = (char *) calloc(sizeof(char), len + 1);
# 976| if (!data || !line) {
# 977|-> fclose(f);
# 978| return -NLE_NOMEM;
# 979| }
Error: CPPCHECK_WARNING: [#def101]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/qdisc/prio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def102]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/route_obj.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def103]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/route_obj.c: scope_hint: In function 'rtnl_route_build_msg'
libnl3-3.9.0-build/libnl-3.9.0/lib/route/route_obj.c:1402:38: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
# 1400| struct rtnl_nexthop *nh;
# 1401| nh = rtnl_route_nexthop_n(route, 0);
# 1402|-> rtmsg.rtm_flags |= nh->rtnh_flags;
# 1403| }
# 1404|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def104]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/route_obj.c:1452:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
# 1450|
# 1451| nh = rtnl_route_nexthop_n(route, 0);
# 1452|-> if (nh->rtnh_gateway)
# 1453| NLA_PUT_ADDR(msg, RTA_GATEWAY, nh->rtnh_gateway);
# 1454| if (nh->rtnh_ifindex)
Error: CPPCHECK_WARNING: [#def105]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/rule.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def106]
libnl3-3.9.0-build/libnl-3.9.0/lib/route/tc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def107]
libnl3-3.9.0-build/libnl-3.9.0/lib/socket.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def108]
libnl3-3.9.0-build/libnl-3.9.0/lib/utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-401): [#def109]
libnl3-3.9.0-build/libnl-3.9.0/lib/utils.c:1055: error[memleak]: Memory leak: tl
# 1053| nl_list_add_tail(&tl->list, head);
# 1054|
# 1055|-> return 0;
# 1056| }
# 1057|
Error: CPPCHECK_WARNING: [#def110]
libnl3-3.9.0-build/libnl-3.9.0/lib/xfrm/ae.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def111]
libnl3-3.9.0-build/libnl-3.9.0/lib/xfrm/sa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def112]
libnl3-3.9.0-build/libnl-3.9.0/lib/xfrm/sp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def113]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_MangledTypeQueryModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:622:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘iter’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1135:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:10654:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1135:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:10654:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1135:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:10654:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:3451:12: note: in expansion of macro ‘SWIG_TypeQuery’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:3451:12: note: in expansion of macro ‘SWIG_TypeQuery’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:2971:37: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:2971:37: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:2971:37: note: in expansion of macro ‘SWIG_GetModule’
# 620| swig_module_info *iter = start;
# 621| do {
# 622|-> if (iter->size) {
# 623| size_t l = 0;
# 624| size_t r = iter->size - 1;
Error: GCC_ANALYZER_WARNING (CWE-126): [#def114]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1144:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12121:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12272:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11943:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11943:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12391:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1608:3: note: in expansion of macro ‘Py_INCREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12132:9: note: in expansion of macro ‘Py_DECREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12121:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1144:57: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12121:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1144:57: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12121:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
# └──────────────────────────┘
# ^
# 1142| #endif
# 1143|
# 1144|-> #define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
# 1145|
# 1146| #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
Error: GCC_ANALYZER_WARNING (CWE-126): [#def115]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1152:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12272:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11943:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11943:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12391:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1608:3: note: in expansion of macro ‘Py_INCREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12132:9: note: in expansion of macro ‘Py_DECREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1152:57: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1152:57: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:15: note: in expansion of macro ‘SWIG_NewPackedObj’
# └──────────────────────────┘
# ^
# 1150| /* for raw packed data */
# 1151| #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
# 1152|-> #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
# 1153|
# 1154| /* for class or struct pointers */
Error: GCC_ANALYZER_WARNING (CWE-476): [#def116]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SwigPyClientData_New’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1650:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11173:49: note: in expansion of macro ‘SWIG_NewClientData’
# 1648| SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
# 1649| /* the klass element */
# 1650|-> data->klass = obj;
# 1651| Py_INCREF(data->klass);
# 1652| /* the newraw method and newargs arguments used to create a new raw instance */
Error: GCC_ANALYZER_WARNING (CWE-476): [#def117]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘pynl_get_cbinfo.part.0’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:3867:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘info’
# 3865|
# 3866| info = calloc(1, sizeof(*info));
# 3867|-> info->cb = cb;
# 3868| list_add(&info->list, &callback_list);
# 3869| pynl_dbg("cb=%p: added %p\n", cb, info);
Error: CLANG_WARNING: [#def118]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:4207:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'policies'
# 4205| PyList_SetItem(listobj, i, polobj);
# 4206| }
# 4207|-> return listobj;
# 4208| }
# 4209|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘nla_policy_array’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:4207:16: warning[-Wanalyzer-malloc-leak]: leak of ‘policies’
# 4205| PyList_SetItem(listobj, i, polobj);
# 4206| }
# 4207|-> return listobj;
# 4208| }
# 4209|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def120]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘_wrap_nla_policy_type_get’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11031:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1135:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11026:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1135:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11026:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1135:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11026:10: note: in expansion of macro ‘SWIG_ConvertPtr’
#11029| }
#11030| arg1 = (struct nla_policy *)(argp1);
#11031|-> result = (uint16_t) ((arg1)->type);
#11032| resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
#11033| return resultobj;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def121]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘_wrap_nla_policy_minlen_get’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11085:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1135:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11080:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1135:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11080:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1135:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11080:10: note: in expansion of macro ‘SWIG_ConvertPtr’
#11083| }
#11084| arg1 = (struct nla_policy *)(argp1);
#11085|-> result = (uint16_t) ((arg1)->minlen);
#11086| resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
#11087| return resultobj;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def122]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘_wrap_nla_policy_maxlen_get’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11139:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1135:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11134:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1135:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11134:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1135:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11134:10: note: in expansion of macro ‘SWIG_ConvertPtr’
#11137| }
#11138| arg1 = (struct nla_policy *)(argp1);
#11139|-> result = (uint16_t) ((arg1)->maxlen);
#11140| resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
#11141| return resultobj;
Error: GCC_ANALYZER_WARNING (CWE-126): [#def123]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12118:29: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12272:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11943:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11943:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12391:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1608:3: note: in expansion of macro ‘Py_INCREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12132:9: note: in expansion of macro ‘Py_DECREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12118:29: note: read of 4 bytes from after the end of ‘swig_const_table’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12118:29: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
# └───────────────────────┘
# ^
#12116| PyObject *obj = 0;
#12117| size_t i;
#12118|-> for (i = 0; constants[i].type; ++i) {
#12119| switch(constants[i].type) {
#12120| case SWIG_PY_POINTER:
Error: GCC_ANALYZER_WARNING (CWE-126): [#def124]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12121:78: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1144:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12272:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11943:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11943:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12391:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1608:3: note: in expansion of macro ‘Py_INCREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12132:9: note: in expansion of macro ‘Py_DECREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1144:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12121:78: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1144:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12121:78: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1144:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
# └─────────────────────────────────────────────┘
# ^
#12119| switch(constants[i].type) {
#12120| case SWIG_PY_POINTER:
#12121|-> obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
#12122| break;
#12123| case SWIG_PY_BINARY:
Error: GCC_ANALYZER_WARNING (CWE-126): [#def125]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:66: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1152:87: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12272:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11943:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11943:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12391:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1608:3: note: in expansion of macro ‘Py_INCREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12132:9: note: in expansion of macro ‘Py_DECREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1152:87: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:66: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1152:87: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:66: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1152:87: note: in definition of macro ‘SWIG_NewPackedObj’
# └────────────────────────────┘
# ^
#12122| break;
#12123| case SWIG_PY_BINARY:
#12124|-> obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
#12125| break;
#12126| default:
Error: GCC_ANALYZER_WARNING (CWE-126): [#def126]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:89: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1152:91: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12272:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11943:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:11943:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12391:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1608:3: note: in expansion of macro ‘Py_INCREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12132:9: note: in expansion of macro ‘Py_DECREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1152:91: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:89: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1152:91: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:12124:89: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/capi_wrap.c:1152:91: note: in definition of macro ‘SWIG_NewPackedObj’
# └─────────────────────────────────────────────┘
# ^
#12122| break;
#12123| case SWIG_PY_BINARY:
#12124|-> obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
#12125| break;
#12126| default:
Error: GCC_ANALYZER_WARNING (CWE-126): [#def127]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1144:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5307:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5458:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5129:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5129:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5577:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1608:3: note: in expansion of macro ‘Py_INCREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5318:9: note: in expansion of macro ‘Py_DECREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5307:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1144:57: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5307:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1144:57: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5307:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
# └──────────────────────────┘
# ^
# 1142| #endif
# 1143|
# 1144|-> #define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
# 1145|
# 1146| #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
Error: GCC_ANALYZER_WARNING (CWE-126): [#def128]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1152:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5458:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5129:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5129:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5577:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1608:3: note: in expansion of macro ‘Py_INCREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5318:9: note: in expansion of macro ‘Py_DECREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1152:57: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1152:57: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:15: note: in expansion of macro ‘SWIG_NewPackedObj’
# └──────────────────────────┘
# ^
# 1150| /* for raw packed data */
# 1151| #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
# 1152|-> #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
# 1153|
# 1154| /* for class or struct pointers */
Error: GCC_ANALYZER_WARNING (CWE-476): [#def129]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SwigPyClientData_New’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1650:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:4820:49: note: in expansion of macro ‘SWIG_NewClientData’
# 1648| SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
# 1649| /* the klass element */
# 1650|-> data->klass = obj;
# 1651| Py_INCREF(data->klass);
# 1652| /* the newraw method and newargs arguments used to create a new raw instance */
Error: GCC_ANALYZER_WARNING (CWE-476): [#def130]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘_wrap_nla_policy_minlen_get’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:4732:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1135:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:4727:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1135:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:4727:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1135:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:4727:10: note: in expansion of macro ‘SWIG_ConvertPtr’
# 4730| }
# 4731| arg1 = (struct nla_policy *)(argp1);
# 4732|-> result = (uint16_t) ((arg1)->minlen);
# 4733| resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
# 4734| return resultobj;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def131]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘_wrap_nla_policy_maxlen_get’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:4786:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg1’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1135:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:4781:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1135:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:4781:10: note: in expansion of macro ‘SWIG_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1135:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:4781:10: note: in expansion of macro ‘SWIG_ConvertPtr’
# 4784| }
# 4785| arg1 = (struct nla_policy *)(argp1);
# 4786|-> result = (uint16_t) ((arg1)->maxlen);
# 4787| resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
# 4788| return resultobj;
Error: GCC_ANALYZER_WARNING (CWE-126): [#def132]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5304:29: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5458:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5129:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5129:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5577:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:15: note: in expansion of macro ‘SWIG_NewPackedObj’
/usr/include/python3.13/Python.h:68: included_from: Included from here.
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:199: included_from: Included from here.
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1608:3: note: in expansion of macro ‘Py_INCREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5318:9: note: in expansion of macro ‘Py_DECREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5304:29: note: read of 4 bytes from after the end of ‘swig_const_table’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5304:29: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
# └───────────────────────┘
# ^
# 5302| PyObject *obj = 0;
# 5303| size_t i;
# 5304|-> for (i = 0; constants[i].type; ++i) {
# 5305| switch(constants[i].type) {
# 5306| case SWIG_PY_POINTER:
Error: GCC_ANALYZER_WARNING (CWE-126): [#def133]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5307:78: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1144:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5458:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5129:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5129:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5577:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1608:3: note: in expansion of macro ‘Py_INCREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5318:9: note: in expansion of macro ‘Py_DECREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1144:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5307:78: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1144:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5307:78: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1144:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
# └─────────────────────────────────────────────┘
# ^
# 5305| switch(constants[i].type) {
# 5306| case SWIG_PY_POINTER:
# 5307|-> obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
# 5308| break;
# 5309| case SWIG_PY_BINARY:
Error: GCC_ANALYZER_WARNING (CWE-126): [#def134]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:66: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1152:87: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5458:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5129:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5129:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5577:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1608:3: note: in expansion of macro ‘Py_INCREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5318:9: note: in expansion of macro ‘Py_DECREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1152:87: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:66: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1152:87: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:66: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1152:87: note: in definition of macro ‘SWIG_NewPackedObj’
# └────────────────────────────┘
# ^
# 5308| break;
# 5309| case SWIG_PY_BINARY:
# 5310|-> obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
# 5311| break;
# 5312| default:
Error: GCC_ANALYZER_WARNING (CWE-126): [#def135]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:89: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1152:91: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5458:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5129:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5129:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5577:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1608:3: note: in expansion of macro ‘Py_INCREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5318:9: note: in expansion of macro ‘Py_DECREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1152:91: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:89: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1152:91: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:5310:89: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/genl/capi_wrap.c:1152:91: note: in definition of macro ‘SWIG_NewPackedObj’
# └─────────────────────────────────────────────┘
# ^
# 5308| break;
# 5309| case SWIG_PY_BINARY:
# 5310|-> obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
# 5311| break;
# 5312| default:
Error: GCC_ANALYZER_WARNING (CWE-126): [#def136]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1144:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12060:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12211:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:11882:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:11882:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12330:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1608:3: note: in expansion of macro ‘Py_INCREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12071:9: note: in expansion of macro ‘Py_DECREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12060:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1144:57: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12060:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1144:57: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12060:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
# └──────────────────────────┘
# ^
# 1142| #endif
# 1143|
# 1144|-> #define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
# 1145|
# 1146| #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
Error: GCC_ANALYZER_WARNING (CWE-126): [#def137]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1152:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12211:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:11882:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:11882:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12330:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1608:3: note: in expansion of macro ‘Py_INCREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12071:9: note: in expansion of macro ‘Py_DECREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1152:57: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1152:57: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:15: note: in expansion of macro ‘SWIG_NewPackedObj’
# └──────────────────────────┘
# ^
# 1150| /* for raw packed data */
# 1151| #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
# 1152|-> #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
# 1153|
# 1154| /* for class or struct pointers */
Error: GCC_ANALYZER_WARNING (CWE-126): [#def138]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12057:29: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12211:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:11882:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:11882:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12330:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:15: note: in expansion of macro ‘SWIG_NewPackedObj’
/usr/include/python3.13/Python.h:68: included_from: Included from here.
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:199: included_from: Included from here.
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1608:3: note: in expansion of macro ‘Py_INCREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12071:9: note: in expansion of macro ‘Py_DECREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12057:29: note: read of 4 bytes from after the end of ‘swig_const_table’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12057:29: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
# └───────────────────────┘
# ^
#12055| PyObject *obj = 0;
#12056| size_t i;
#12057|-> for (i = 0; constants[i].type; ++i) {
#12058| switch(constants[i].type) {
#12059| case SWIG_PY_POINTER:
Error: GCC_ANALYZER_WARNING (CWE-126): [#def139]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12060:78: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1144:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12211:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:11882:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:11882:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12330:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1608:3: note: in expansion of macro ‘Py_INCREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12071:9: note: in expansion of macro ‘Py_DECREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1144:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12060:78: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1144:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12060:78: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1144:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
# └─────────────────────────────────────────────┘
# ^
#12058| switch(constants[i].type) {
#12059| case SWIG_PY_POINTER:
#12060|-> obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
#12061| break;
#12062| case SWIG_PY_BINARY:
Error: GCC_ANALYZER_WARNING (CWE-126): [#def140]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:66: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1152:87: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12211:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:11882:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:11882:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12330:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1608:3: note: in expansion of macro ‘Py_INCREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12071:9: note: in expansion of macro ‘Py_DECREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1152:87: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:66: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1152:87: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:66: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1152:87: note: in definition of macro ‘SWIG_NewPackedObj’
# └────────────────────────────┘
# ^
#12061| break;
#12062| case SWIG_PY_BINARY:
#12063|-> obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
#12064| break;
#12065| default:
Error: GCC_ANALYZER_WARNING (CWE-126): [#def141]
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:89: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1152:91: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12211:1: note: in expansion of macro ‘SWIG_init’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:11882:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:11882:17: note: in expansion of macro ‘SWIG_GetModule’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12330:3: note: in expansion of macro ‘SWIG_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1608:3: note: in expansion of macro ‘Py_INCREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:15: note: in expansion of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12071:9: note: in expansion of macro ‘Py_DECREF’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1152:91: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:89: note: read of 8 bytes from after the end of ‘swig_const_table’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1152:91: note: in definition of macro ‘SWIG_NewPackedObj’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:12063:89: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
libnl3-3.9.0-build/libnl-3.9.0/python/netlink/route/capi_wrap.c:1152:91: note: in definition of macro ‘SWIG_NewPackedObj’
# └─────────────────────────────────────────────┘
# ^
#12061| break;
#12062| case SWIG_PY_BINARY:
#12063|-> obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
#12064| break;
#12065| default:
Error: CPPCHECK_WARNING: [#def142]
libnl3-3.9.0-build/libnl-3.9.0/src/nf-log.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def143]
libnl3-3.9.0-build/libnl-3.9.0/src/nf-queue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def144]
libnl3-3.9.0-build/libnl-3.9.0/src/nl-addr-list.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def145]
libnl3-3.9.0-build/libnl-3.9.0/src/nl-class-add.c:73:7: warning[unix.Malloc]: Potential leak of memory pointed to by 'id'
# 71|
# 72| for (;;) {
# 73|-> int c, optidx = 0;
# 74| enum {
# 75| ARG_UPDATE = 257,
Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
libnl3-3.9.0-build/libnl-3.9.0/src/nl-class-add.c: scope_hint: In function ‘main’
libnl3-3.9.0-build/libnl-3.9.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: CLANG_WARNING: [#def147]
libnl3-3.9.0-build/libnl-3.9.0/src/nl-qdisc-add.c:70:7: warning[unix.Malloc]: Potential leak of memory pointed to by 'id'
# 68|
# 69| for (;;) {
# 70|-> int c, optidx = 0;
# 71| enum {
# 72| ARG_REPLACE = 257,
Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
libnl3-3.9.0-build/libnl-3.9.0/src/nl-qdisc-add.c: scope_hint: In function ‘main’
libnl3-3.9.0-build/libnl-3.9.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;
Error: CPPCHECK_WARNING: [#def149]
libnl3-3.9.0-build/libnl-3.9.0/src/nl-route-get.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-27.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | libnl3-3.9.0-4.fc41 |
store-results-to | /tmp/tmps2uiu6g8/libnl3-3.9.0-4.fc41.tar.xz |
time-created | 2024-07-03 15:54:54 |
time-finished | 2024-07-03 15:58:38 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmps2uiu6g8/libnl3-3.9.0-4.fc41.tar.xz' '--gcc-analyze' '/tmp/tmps2uiu6g8/libnl3-3.9.0-4.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |