kio-fuse-5.1.0-5.fc41

List of Defects

Error: COMPILER_WARNING (CWE-252): [#def1]
kio-fuse-5.1.0-build/kio-fuse-5.1.0/kiofuseservice.cpp: scope_hint: In member function ‘bool KIOFuseService::registerServiceDaemonized()’
kio-fuse-5.1.0-build/kio-fuse-5.1.0/kiofuseservice.cpp:165:28: warning[-Wunused-result]: ignoring return value of ‘ssize_t read(int, void*, size_t)’ declared with attribute ‘warn_unused_result’
#  165 |                 (void) read(waiter[0], &result, sizeof(result));
#      |                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  163|   		return false;
#  164|   	default: // Parent
#  165|-> 		(void) read(waiter[0], &result, sizeof(result));
#  166|   		if(result)
#  167|   			waitpid(cpid, nullptr, 0);

Error: COMPILER_WARNING (CWE-252): [#def2]
kio-fuse-5.1.0-build/kio-fuse-5.1.0/kiofuseservice.cpp:180:21: warning[-Wunused-result]: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’
#  180 |         (void) chdir("/");
#      |                ~~~~~^~~~~
#  178|   	}
#  179|   
#  180|-> 	(void) chdir("/");
#  181|   
#  182|   	/* Propagate completion of daemon initialization */

Error: COMPILER_WARNING (CWE-252): [#def3]
kio-fuse-5.1.0-build/kio-fuse-5.1.0/kiofuseservice.cpp:183:21: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
#  183 |         (void) write(waiter[1], &result, sizeof(result));
#      |                ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  181|   
#  182|   	/* Propagate completion of daemon initialization */
#  183|-> 	(void) write(waiter[1], &result, sizeof(result));
#  184|   	close(waiter[0]);
#  185|   	close(waiter[1]);

Error: COMPILER_WARNING (CWE-252): [#def4]
kio-fuse-5.1.0-build/kio-fuse-5.1.0/kiofusevfs.cpp: scope_hint: In member function ‘void KIOFuseVFS::exitHandler()’
kio-fuse-5.1.0-build/kio-fuse-5.1.0/kiofusevfs.cpp:2431:15: warning[-Wunused-result]: ignoring return value of ‘ssize_t read(int, void*, size_t)’ declared with attribute ‘warn_unused_result’
# 2431 |         ::read(signalFd[1], &tmp, sizeof(tmp));
#      |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2429|   	m_signalNotifier->setEnabled(false);
# 2430|   	int tmp;
# 2431|-> 	::read(signalFd[1], &tmp, sizeof(tmp));
# 2432|   	stop();
# 2433|   }

Error: COMPILER_WARNING (CWE-252): [#def5]
kio-fuse-5.1.0-build/kio-fuse-5.1.0/kiofusevfs.cpp: scope_hint: In static member function ‘static void KIOFuseVFS::signalHandler(int)’
kio-fuse-5.1.0-build/kio-fuse-5.1.0/kiofusevfs.cpp:2437:16: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
# 2437 |         ::write(signalFd[0], &signal, sizeof(signal));
#      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2435|   void KIOFuseVFS::signalHandler(int signal) 
# 2436|   {
# 2437|-> 	::write(signalFd[0], &signal, sizeof(signal));
# 2438|   }
# 2439|   

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-225.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namekio-fuse-5.1.0-5.fc41
store-results-to/tmp/tmp_8uphgov/kio-fuse-5.1.0-5.fc41.tar.xz
time-created2024-07-03 14:31:12
time-finished2024-07-03 14:32:56
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp_8uphgov/kio-fuse-5.1.0-5.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp_8uphgov/kio-fuse-5.1.0-5.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9