libsecret-0.21.7-1.fc43

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
libsecret-0.21.7/redhat-linux-build/../libsecret/secret-attributes.c:320:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
libsecret-0.21.7/redhat-linux-build/../libsecret/secret-attributes.c:316:17: release_memory: ‘error’ is NULL
libsecret-0.21.7/redhat-linux-build/../libsecret/secret-attributes.c:318:12: branch_true: following ‘true’ branch...
libsecret-0.21.7/redhat-linux-build/../libsecret/secret-attributes.c:320:20: branch_true: ...to here
libsecret-0.21.7/redhat-linux-build/../libsecret/secret-attributes.c:320:20: branch_true: following ‘true’ branch (when ‘matching == 0’)...
libsecret-0.21.7/redhat-linux-build/../libsecret/secret-attributes.c:320:42: branch_true: ...to here
libsecret-0.21.7/redhat-linux-build/../libsecret/secret-attributes.c:320:42: release_memory: ‘error’ is NULL
libsecret-0.21.7/redhat-linux-build/../libsecret/secret-attributes.c:320:37: danger: dereference of NULL ‘error’
#  318|   	if (!secret_attributes_validate (schema, attributes, &error)) {
#  319|   		// if matching is false, an empty table is fine
#  320|-> 		if ((!matching) && (error->code == SECRET_ERROR_EMPTY_TABLE)) {
#  321|   			g_error_free (error);
#  322|   			return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
libsecret-0.21.7/redhat-linux-build/../libsecret/secret-attributes.c:325:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
libsecret-0.21.7/redhat-linux-build/../libsecret/secret-attributes.c:316:17: release_memory: ‘error’ is NULL
libsecret-0.21.7/redhat-linux-build/../libsecret/secret-attributes.c:318:12: branch_true: following ‘true’ branch...
libsecret-0.21.7/redhat-linux-build/../libsecret/secret-attributes.c:320:20: branch_true: ...to here
libsecret-0.21.7/redhat-linux-build/../libsecret/secret-attributes.c:320:20: branch_false: following ‘false’ branch (when ‘matching != 0’)...
libsecret-0.21.7/redhat-linux-build/../libsecret/secret-attributes.c:325:17: branch_false: ...to here
libsecret-0.21.7/redhat-linux-build/../libsecret/secret-attributes.c:325:17: release_memory: ‘error’ is NULL
libsecret-0.21.7/redhat-linux-build/../libsecret/secret-attributes.c:326:17: release_memory: ‘error’ is NULL
libsecret-0.21.7/redhat-linux-build/../libsecret/secret-attributes.c:325:17: danger: dereference of NULL ‘error’
#  323|   		}
#  324|   		
#  325|-> 		g_warning ("%s: error validating schema: %s", pretty_function, error->message);
#  326|   		g_error_free (error);
#  327|   		return FALSE;

Error: COMPILER_WARNING (CWE-252): [#def3]
libsecret-0.21.7/tool/secret-tool.c: scope_hint: In function ‘write_password_stdout’
libsecret-0.21.7/tool/secret-tool.c:202:17: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  202 |                 write (1, "\n", 1);
#      |                 ^~~~~~~~~~~~~~~~~~
#  200|   	/* Add a new line if we're writing out to a tty */
#  201|   	if (isatty (1))
#  202|-> 		write (1, "\n", 1);
#  203|   }
#  204|   

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
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-42.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelibsecret-0.21.7-1.fc43
store-results-to/tmp/tmpbs8chv9b/libsecret-0.21.7-1.fc43.tar.xz
time-created2025-04-25 14:16:37
time-finished2025-04-25 14:18:10
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpbs8chv9b/libsecret-0.21.7-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpbs8chv9b/libsecret-0.21.7-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9