Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
image-builder-79.0.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c: scope_hint: In function ‘parse_proc_stringlist’
image-builder-79.0.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c:156:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
#  154|   	ret[i] = NULL;
#  155|   	return ret;
#  156|-> }
#  157|   
#  158|   /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
image-builder-79.0.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c:156:1: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
#  154|   	ret[i] = NULL;
#  155|   	return ret;
#  156|-> }
#  157|   
#  158|   /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
image-builder-79.0.0/vendor/github.com/containers/storage/pkg/unshare/unshare.c:156:1: warning[-Wanalyzer-malloc-leak]: leak of ‘new_buf’
#  154|   	ret[i] = NULL;
#  155|   	return ret;
#  156|-> }
#  157|   
#  158|   /*

Error: COMPILER_WARNING (CWE-704): [#def4]
image-builder-79.0.0/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c: scope_hint: In function ‘sqlite3ShadowTableName’
image-builder-79.0.0/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c:124684:9: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#124682|     char *zTail;                  /* Pointer to the last "_" in zName */
#124683|     Table *pTab;                  /* Table that zName is a shadow of */
#124684|->   zTail = strrchr(zName, '_');
#124685|     if( zTail==0 ) return 0;
#124686|     *zTail = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def5]
image-builder-79.0.0/vendor/github.com/miekg/pkcs11/pkcs11.go:77: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#   75|   	CK_C_GetFunctionList list;
#   76|   	struct ctx *c = calloc(1, sizeof(struct ctx));
#   77|-> 	c->handle = dlopen(module, RTLD_LAZY);
#   78|   	if (c->handle == NULL) {
#   79|   		free(c);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
image-builder-79.0.0/vendor/github.com/miekg/pkcs11/pkcs11.go: scope_hint: In function 'New'
image-builder-79.0.0/vendor/github.com/miekg/pkcs11/pkcs11.go:77:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'c'
#   75|   	CK_C_GetFunctionList list;
#   76|   	struct ctx *c = calloc(1, sizeof(struct ctx));
#   77|-> 	c->handle = dlopen(module, RTLD_LAZY);
#   78|   	if (c->handle == NULL) {
#   79|   		free(c);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
image-builder-79.0.0/vendor/github.com/miekg/pkcs11/pkcs11.go: scope_hint: In function ‘New’
image-builder-79.0.0/vendor/github.com/miekg/pkcs11/pkcs11.go:77:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘c’
#   75|   	CK_C_GetFunctionList list;
#   76|   	struct ctx *c = calloc(1, sizeof(struct ctx));
#   77|-> 	c->handle = dlopen(module, RTLD_LAZY);
#   78|   	if (c->handle == NULL) {
#   79|   		free(c);

Error: CPPCHECK_WARNING (CWE-476): [#def8]
image-builder-79.0.0/vendor/github.com/miekg/pkcs11/pkcs11.go:78: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#   76|   	struct ctx *c = calloc(1, sizeof(struct ctx));
#   77|   	c->handle = dlopen(module, RTLD_LAZY);
#   78|-> 	if (c->handle == NULL) {
#   79|   		free(c);
#   80|   		return NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def9]
image-builder-79.0.0/vendor/github.com/miekg/pkcs11/pkcs11.go:82: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#   80|   		return NULL;
#   81|   	}
#   82|-> 	list = (CK_C_GetFunctionList) dlsym(c->handle, "C_GetFunctionList");
#   83|   	if (list == NULL) {
#   84|   		free(c);

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.2.1
analyzer-version-gcc-analyzer16.2.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.2.1
diffbase-analyzer-version-gcc-analyzer16.2.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-174.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260813.215201.gc98a3c4.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameimage-builder-79.0.0-1.20260825185527852228.pr2607.42.gea5963d94
diffbase-store-results-to/tmp/tmpqqj_84vf/image-builder-79.0.0-1.20260825185527852228.pr2607.42.gea5963d94.tar.xz
diffbase-time-created2026-08-25 19:25:27
diffbase-time-finished2026-08-25 19:28:47
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,clippy,shellcheck,gcc,unicontrol' '-o' '/tmp/tmpqqj_84vf/image-builder-79.0.0-1.20260825185527852228.pr2607.42.gea5963d94.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpqqj_84vf/image-builder-79.0.0-1.20260825185527852228.pr2607.42.gea5963d94.src.rpm'
diffbase-tool-versioncsmock-3.8.7.20260824.142338.gaf1a4e2-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-174.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260813.215201.gc98a3c4.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameimage-builder-79.0.0-1.20260825113520270879.main.20.g5a8232a20
store-results-to/tmp/tmpsd7ap0nw/image-builder-79.0.0-1.20260825113520270879.main.20.g5a8232a20.tar.xz
time-created2026-08-25 19:19:33
time-finished2026-08-25 19:24:51
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,clippy,shellcheck,gcc,unicontrol' '-o' '/tmp/tmpsd7ap0nw/image-builder-79.0.0-1.20260825113520270879.main.20.g5a8232a20.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpsd7ap0nw/image-builder-79.0.0-1.20260825113520270879.main.20.g5a8232a20.src.rpm'
tool-versioncsmock-3.8.7.20260824.142338.gaf1a4e2-1.el9