strace-v6.13-1.20250320212410427625.pr332.46.g3fac931da

List of Findings

Error: SHELLCHECK_WARNING: [#def1]
/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: [#def2]
/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: [#def3]
/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): [#def4]
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): [#def5]
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): [#def6]
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): [#def7]
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): [#def8]
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): [#def9]
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): [#def10]
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);

Scan Properties

analyzer-version-clippy1.85.1
analyzer-version-cppcheck2.17 dev
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-163.us-west-2.compute.internal
mock-configfedora-rawhide-x86_64
project-namestrace-v6.13-1.20250320212410427625.pr332.46.g3fac931da
store-results-to/tmp/tmpjif8lycb/strace-v6.13-1.20250320212410427625.pr332.46.g3fac931da.tar.xz
time-created2025-03-20 21:40:18
time-finished2025-03-20 21:42:45
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,unicontrol,clippy,gcc,cppcheck' '-o' '/tmp/tmpjif8lycb/strace-v6.13-1.20250320212410427625.pr332.46.g3fac931da.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpjif8lycb/strace-v6.13-1.20250320212410427625.pr332.46.g3fac931da.src.rpm'
tool-versioncsmock-3.8.0-1.el9