Task #44839 - strace-v6.13-1.20250320212410427625.pr332.46.g3fac931da/scan-results.err
back to task #44839download
Error: SHELLCHECK_WARNING: /usr/bin/strace-log-merge:38:2: warning[SC3043]: In POSIX sh, 'local' is undefined. # 36| iterate_logfiles() # 37| { # 38|-> local file suffix # 39| # 40| for file in "$logfile".*; do Error: SHELLCHECK_WARNING: /usr/bin/strace-log-merge:52:2: warning[SC3043]: In POSIX sh, 'local' is undefined. # 50| process_suffix() # 51| { # 52|-> local suffix len # 53| suffix="$1"; shift # 54| Error: SHELLCHECK_WARNING: /usr/bin/strace-log-merge:63:2: warning[SC3043]: In POSIX sh, 'local' is undefined. # 61| process_logfile() # 62| { # 63|-> local suffix file pid # 64| suffix="$1"; shift # 65| file="$1"; shift Error: GCC_ANALYZER_WARNING (CWE-590): strace-v6.13-build/strace-6.13.0.46.3fac9/src/dm.c: scope_hint: In function ‘dm_known_ioctl’ strace-v6.13-build/strace-6.13.0.46.3fac9/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): strace-v6.13-build/strace-6.13.0.46.3fac9/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): strace-v6.13-build/strace-6.13.0.46.3fac9/src/sock.c: scope_hint: In function ‘decode_ifconf’ strace-v6.13-build/strace-6.13.0.46.3fac9/src/sock.c:186:25: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘ifc’ which points to memory on the stack strace-v6.13-build/strace-6.13.0.46.3fac9/src/sock.c:9: included_from: Included from here. strace-v6.13-build/strace-6.13.0.46.3fac9/src/sock.c:184:21: note: in expansion of macro ‘umove’ strace-v6.13-build/strace-6.13.0.46.3fac9/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): strace-v6.13-build/strace-6.13.0.46.3fac9/src/sock.c:196:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entering_ifc’ strace-v6.13-build/strace-6.13.0.46.3fac9/src/sock.c:184:21: note: in expansion of macro ‘umove’ strace-v6.13-build/strace-6.13.0.46.3fac9/src/sock.c:185:21: note: in expansion of macro ‘entering’ strace-v6.13-build/strace-6.13.0.46.3fac9/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): strace-v6.13-build/strace-6.13.0.46.3fac9/src/sock.c:196:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entering_ifc’ strace-v6.13-build/strace-6.13.0.46.3fac9/src/sock.c:184:21: note: in expansion of macro ‘umove’ strace-v6.13-build/strace-6.13.0.46.3fac9/src/sock.c:185:21: note: in expansion of macro ‘entering’ strace-v6.13-build/strace-6.13.0.46.3fac9/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): strace-v6.13-build/strace-6.13.0.46.3fac9/src/sock.c:221:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entering_ifc’ strace-v6.13-build/strace-6.13.0.46.3fac9/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): strace-v6.13-build/strace-6.13.0.46.3fac9/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);