gsm-1.0.23-1.fc44

List of Findings

Error: COMPILER_WARNING: [#def1]
gsm-1.0-pl23/src/gsm_create.c:7:25: warning[-Wunused-const-variable=]: ‘ident’ defined but not used
#    7 | static char const       ident[] = "$Header: /tmp_amd/presto/export/kbs/jutta/src/gsm/RCS/gsm_create.c,v 1.4 1996/07/02 09:59:05 jutta Exp $";
#      |                         ^~~~~
#    5|    */
#    6|   
#    7|-> static char const	ident[] = "$Header: /tmp_amd/presto/export/kbs/jutta/src/gsm/RCS/gsm_create.c,v 1.4 1996/07/02 09:59:05 jutta Exp $";
#    8|   
#    9|   #include	"config.h"

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
gsm-1.0-pl23/src/toast.c:273:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>(name)’
gsm-1.0-pl23/src/toast.c:629:12: enter_function: entry to ‘process’
gsm-1.0-pl23/src/toast.c:637:14: call_function: calling ‘open_input’ from ‘process’
gsm-1.0-pl23/src/toast.c:637:14: return_function: returning to ‘process’ from ‘open_input’
gsm-1.0-pl23/src/toast.c:637:12: branch_false: following ‘false’ branch...
gsm-1.0-pl23/src/toast.c:637:44: branch_false: ...to here
gsm-1.0-pl23/src/toast.c:637:44: call_function: calling ‘open_output’ from ‘process’
#  271|   	if (!name) return p;
#  272|   
#  273|-> 	maxlen = strlen(name) + 1 + strlen(want) + strlen(cut);
#  274|   	p = strcpy(emalloc(maxlen), name);
#  275|   

Error: COMPILER_WARNING (CWE-252): [#def3]
gsm-1.0-pl23/src/toast.c: scope_hint: In function ‘update_own’
gsm-1.0-pl23/src/toast.c:346:15: warning[-Wunused-result]: ignoring return value of ‘fchown’ declared with attribute ‘warn_unused_result’
#  346 |         (void)fchown(fileno(out), instat.st_uid, instat.st_gid);
#      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  344|   	if (!instat.st_nlink) return; /* couldn't stat in */
#  345|   #ifdef HAS_FCHOWN
#  346|-> 	(void)fchown(fileno(out), instat.st_uid, instat.st_gid);
#  347|   #else
#  348|   #ifdef HAS_CHOWN

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-125.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namegsm-1.0.23-1.fc44
store-results-to/tmp/tmp0saqseyx/gsm-1.0.23-1.fc44.tar.xz
time-created2026-01-08 16:50:18
time-finished2026-01-08 16:51:29
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp0saqseyx/gsm-1.0.23-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp0saqseyx/gsm-1.0.23-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9