# strace-v6.19-1.20260401092117906132.master.35.gd39dd4b4e

## 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-6.19.0.35.d39dd/src/dm.c: scope_hint: In function ‘dm_known_ioctl’
    strace-6.19.0.35.d39dd/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: GCC_ANALYZER_WARNING (CWE-775): [#def5]
    strace-6.19.0.35.d39dd/src/ptrace_syscall_info.c: scope_hint: In function ‘do_test_ptrace_set_syscall_info’
    strace-6.19.0.35.d39dd/src/ptrace_syscall_info.c:808:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘splin[0]’
    #  806|   		close(splin[0]);
    #  807|
    #  808|-> 	return ptrace_stop == ARRAY_SIZE(si) * 2;
    #  809|   }
    #  810|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
    strace-6.19.0.35.d39dd/src/ptrace_syscall_info.c:808:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘splin[1]’
    #  806|   		close(splin[0]);
    #  807|
    #  808|-> 	return ptrace_stop == ARRAY_SIZE(si) * 2;
    #  809|   }
    #  810|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
    strace-6.19.0.35.d39dd/src/ptrace_syscall_info.c:808:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘splout[0]’
    #  806|   		close(splin[0]);
    #  807|
    #  808|-> 	return ptrace_stop == ARRAY_SIZE(si) * 2;
    #  809|   }
    #  810|

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def8]
    strace-6.19.0.35.d39dd/src/ptrace_syscall_info.c:808:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘splout[1]’
    #  806|   		close(splin[0]);
    #  807|
    #  808|-> 	return ptrace_stop == ARRAY_SIZE(si) * 2;
    #  809|   }
    #  810|

    Error: CPPCHECK_WARNING (CWE-457): [#def9]
    strace-6.19.0.35.d39dd/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): [#def10]
    strace-6.19.0.35.d39dd/src/sock.c: scope_hint: In function ‘decode_ifconf’
    strace-6.19.0.35.d39dd/src/sock.c:186:25: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘ifc’ which points to memory on the stack
    strace-6.19.0.35.d39dd/src/sock.c:9: included_from: Included from here.
    strace-6.19.0.35.d39dd/src/sock.c:184:21: note: in expansion of macro ‘umove’
    strace-6.19.0.35.d39dd/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|   			tprints_arg_next_name("argp");

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
    strace-6.19.0.35.d39dd/src/sock.c:196:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entering_ifc’
    strace-6.19.0.35.d39dd/src/sock.c:184:21: note: in expansion of macro ‘umove’
    strace-6.19.0.35.d39dd/src/sock.c:185:21: note: in expansion of macro ‘entering’
    strace-6.19.0.35.d39dd/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): [#def12]
    strace-6.19.0.35.d39dd/src/sock.c:196:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entering_ifc’
    strace-6.19.0.35.d39dd/src/sock.c:184:21: note: in expansion of macro ‘umove’
    strace-6.19.0.35.d39dd/src/sock.c:185:21: note: in expansion of macro ‘entering’
    strace-6.19.0.35.d39dd/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): [#def13]
    strace-6.19.0.35.d39dd/src/sock.c:221:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entering_ifc’
    strace-6.19.0.35.d39dd/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))

## Scan Properties

analyzer-version-clippy | 1.94.1
analyzer-version-cppcheck | 2.20.0
analyzer-version-gcc | 16.0.1
analyzer-version-gcc-analyzer | 16.0.1
analyzer-version-shellcheck | 0.11.0
analyzer-version-unicontrol | 0.0.2
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol
exit-code | 0
host | ip-172-16-1-163.us-west-2.compute.internal
known-false-positives | /usr/share/csmock/known-false-positives.js
known-false-positives-rpm | known-false-positives-0.0.0.20260320.200800.gd35503f.main-1.el9.noarch
mock-config | fedora-rawhide-x86_64
project-name | strace-v6.19-1.20260401092117906132.master.35.gd39dd4b4e
store-results-to | /tmp/tmpukkn59z4/strace-v6.19-1.20260401092117906132.master.35.gd39dd4b4e.tar.xz
time-created | 2026-04-03 19:53:46
time-finished | 2026-04-03 19:56:46
tool | csmock
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,gcc,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpukkn59z4/strace-v6.19-1.20260401092117906132.master.35.gd39dd4b4e.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpukkn59z4/strace-v6.19-1.20260401092117906132.master.35.gd39dd4b4e.src.rpm'
tool-version | csmock-3.8.4.20260302.153719.g8203630-1.el9