Fixed findings

List of Findings

Error: COMPILER_WARNING: [#def1] [important]
uriparser-0.9.9/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-wSFYPI/CheckSymbolExists.c:8:19: error[error]: ‘wprintf’ undeclared (first use in this function)

Error: CPPCHECK_WARNING (CWE-476): [#def2]
uriparser-0.9.9/test/test.cpp:2357: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: uriFirst
# 2355|   	UriUriA uri;
# 2356|   	char * uriFirst = strdup(uriString);
# 2357|-> 	const size_t uriLen = strlen(uriFirst);
# 2358|   	char * uriAfterLast = uriFirst + uriLen;
# 2359|   

Error: CPPCHECK_WARNING (CWE-682): [#def3]
uriparser-0.9.9/test/test.cpp:2358: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
# 2356|   	char * uriFirst = strdup(uriString);
# 2357|   	const size_t uriLen = strlen(uriFirst);
# 2358|-> 	char * uriAfterLast = uriFirst + uriLen;
# 2359|   
# 2360|   	EXPECT_EQ(uriParseSingleUriExA(&uri, uriFirst, uriAfterLast, NULL), URI_SUCCESS);

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
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.0
diffbase-analyzer-version-gcc-analyzer16.0.0
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-101.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.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameuriparser-1.0.0-1.fc44
diffbase-store-results-to/tmp/tmptjvgi45a/uriparser-1.0.0-1.fc44.tar.xz
diffbase-time-created2026-01-08 21:57:21
diffbase-time-finished2026-01-08 21:59:03
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmptjvgi45a/uriparser-1.0.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmptjvgi45a/uriparser-1.0.0-1.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-101.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-nameuriparser-0.9.9-1.fc43
store-results-to/tmp/tmpr44p0joh/uriparser-0.9.9-1.fc43.tar.xz
time-created2026-01-08 21:53:26
time-finished2026-01-08 21:55:56
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpr44p0joh/uriparser-0.9.9-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpr44p0joh/uriparser-0.9.9-1.fc43.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9