Newly introduced findings

List of Findings

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

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

Scan Properties

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