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|
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
diffbase-analyzer-version-clippy | 1.82.0 |
diffbase-analyzer-version-cppcheck | 2.16.0 |
diffbase-analyzer-version-gcc | 14.2.1 |
diffbase-analyzer-version-gcc-analyzer | 15.0.0 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-unicontrol | 0.0.2 |
diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-142.us-west-2.compute.internal |
diffbase-mock-config | fedora-rawhide-gcc-latest-x86_64 |
diffbase-project-name | libnl3-3.10.0-1.fc41 |
diffbase-store-results-to | /tmp/tmpn7igcgex/libnl3-3.10.0-1.fc41.tar.xz |
diffbase-time-created | 2024-11-13 01:33:16 |
diffbase-time-finished | 2024-11-13 01:37:09 |
diffbase-tool | csmock |
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-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-142.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | libnl3-3.11.0-1.fc42 |
store-results-to | /tmp/tmprhuth46x/libnl3-3.11.0-1.fc42.tar.xz |
time-created | 2024-11-13 01:37:22 |
time-finished | 2024-11-13 01:40:52 |
title | Newly introduced findings |
tool | csmock |
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-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |