Error: GCC_ANALYZER_WARNING (CWE-590): [#def1] strace-v6.10-build/strace-6.9.0.10183.6c9da/src/dm.c: scope_hint: In function ‘dm_known_ioctl’ strace-v6.10-build/strace-6.9.0.10183.6c9da/src/dm.c:570:25: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘ioc’ which points to memory on the stack # 568| (ioc->data_size < offsetof(struct dm_ioctl, data_size))) { # 569| if (entering(tcp)) # 570|-> free(ioc); # 571| return 0; # 572| } Error: CPPCHECK_WARNING (CWE-457): [#def2] strace-v6.10-build/strace-6.9.0.10183.6c9da/src/signal.c:175: warning[uninitvar]: Uninitialized variable: mask # 173| # 174| sep = '['; # 175|-> for (int i = 0; (i = next_set_bit(mask, i, size * (4 * 8))) >= 0; ) { # 176| ++i; # 177| *s++ = sep; Error: GCC_ANALYZER_WARNING (CWE-590): [#def3] strace-v6.10-build/strace-6.9.0.10183.6c9da/src/sock.c: scope_hint: In function ‘decode_ifconf’ strace-v6.10-build/strace-6.9.0.10183.6c9da/src/sock.c:186:25: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘<unknown>’ which points to memory on the stack strace-v6.10-build/strace-6.9.0.10183.6c9da/src/sock.c:9: included_from: Included from here. strace-v6.10-build/strace-6.9.0.10183.6c9da/src/sock.c:184:21: note: in expansion of macro ‘umove’ strace-v6.10-build/strace-6.9.0.10183.6c9da/src/sock.c:185:21: note: in expansion of macro ‘entering’ # 184| if (!ifc || umove(tcp, addr, ifc) < 0) { # 185| if (entering(tcp)) { # 186|-> free(ifc); # 187| # 188| tprint_arg_next(); Error: GCC_ANALYZER_WARNING (CWE-476): [#def4] strace-v6.10-build/strace-6.9.0.10183.6c9da/src/sock.c:196:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entering_ifc’ strace-v6.10-build/strace-6.9.0.10183.6c9da/src/sock.c:184:21: note: in expansion of macro ‘umove’ strace-v6.10-build/strace-6.9.0.10183.6c9da/src/sock.c:185:21: note: in expansion of macro ‘entering’ strace-v6.10-build/strace-6.9.0.10183.6c9da/src/sock.c:15: included_from: Included from here. # 194| */ # 195| if (!entering_ifc->ifc_buf) # 196|-> print_ifc_len(entering_ifc->ifc_len); # 197| # 198| tprint_struct_next(); Error: GCC_ANALYZER_WARNING (CWE-476): [#def5] strace-v6.10-build/strace-6.9.0.10183.6c9da/src/sock.c:221:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entering_ifc’ strace-v6.10-build/strace-6.9.0.10183.6c9da/src/sock.c:207:13: note: in expansion of macro ‘entering’ # 219| /* exiting */ # 220| # 221|-> if (entering_ifc->ifc_buf && (entering_ifc->ifc_len != ifc->ifc_len)) # 222| tprint_value_changed(); # 223| if (!entering_ifc->ifc_buf || (entering_ifc->ifc_len != ifc->ifc_len)) Error: CPPCHECK_WARNING (CWE-823): [#def6] strace-v6.10-build/strace-6.9.0.10183.6c9da/src/sockaddr.c:480: error[arrayIndexOutOfBounds]: Array '(*sa_ipx).sipx_node[6]' accessed at index 7, which is out of bounds. # 478| tprint_arg_end(); # 479| tprint_struct_next(); # 480|-> PRINT_FIELD_VAL_ARRAY(*sa_ipx, sipx_node, PRINT_VAL_0X); # 481| tprint_struct_next(); # 482| PRINT_FIELD_0X(*sa_ipx, sipx_type);
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 | cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-71.us-west-2.compute.internal |
mock-config | fedora-rawhide-x86_64 |
project-name | strace-v6.10-1.20240731134107394847.pr252.10183.g6c9da1d73 |
store-results-to | /tmp/tmpb7gz0gli/strace-v6.10-1.20240731134107394847.pr252.10183.g6c9da1d73.tar.xz |
time-created | 2024-07-31 14:13:46 |
time-finished | 2024-07-31 14:15:34 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,shellcheck,cppcheck' '-o' '/tmp/tmpb7gz0gli/strace-v6.10-1.20240731134107394847.pr252.10183.g6c9da1d73.tar.xz' '--gcc-analyze' '--cppcheck-add-flag=--check-level=exhaustive' '/tmp/tmpb7gz0gli/strace-v6.10-1.20240731134107394847.pr252.10183.g6c9da1d73.src.rpm' |
tool-version | csmock-3.6.0-1.el9 |