Task #3976 - strace-v6.10-1.20240808003932141086.pr252.10185.g84bcd79a7/scan-results.err
back to task #3976download
Error: GCC_ANALYZER_WARNING (CWE-590):
strace-v6.10-build/strace-6.9.0.10185.84bcd7/src/dm.c: scope_hint: In function ‘dm_known_ioctl’
strace-v6.10-build/strace-6.9.0.10185.84bcd7/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.10-build/strace-6.9.0.10185.84bcd7/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.10-build/strace-6.9.0.10185.84bcd7/src/sock.c: scope_hint: In function ‘decode_ifconf’
strace-v6.10-build/strace-6.9.0.10185.84bcd7/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.10185.84bcd7/src/sock.c:9: included_from: Included from here.
strace-v6.10-build/strace-6.9.0.10185.84bcd7/src/sock.c:184:21: note: in expansion of macro ‘umove’
strace-v6.10-build/strace-6.9.0.10185.84bcd7/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.10-build/strace-6.9.0.10185.84bcd7/src/sock.c:196:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entering_ifc’
strace-v6.10-build/strace-6.9.0.10185.84bcd7/src/sock.c:184:21: note: in expansion of macro ‘umove’
strace-v6.10-build/strace-6.9.0.10185.84bcd7/src/sock.c:185:21: note: in expansion of macro ‘entering’
strace-v6.10-build/strace-6.9.0.10185.84bcd7/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.10-build/strace-6.9.0.10185.84bcd7/src/sock.c:221:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entering_ifc’
strace-v6.10-build/strace-6.9.0.10185.84bcd7/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.10-build/strace-6.9.0.10185.84bcd7/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);