pcaudiolib-1.1-15.fc41

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
pcaudiolib-1.1-build/pcaudiolib-1.1/src/alsa.c: scope_hint: In function 'create_alsa_object'
pcaudiolib-1.1-build/pcaudiolib-1.1/src/alsa.c:264:16: warning[-Wanalyzer-malloc-leak]: leak of 'self'
#  262|   	self->vtable.strerror = alsa_object_strerror;
#  263|   
#  264|-> 	return &self->vtable;
#  265|   }
#  266|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
pcaudiolib-1.1-build/pcaudiolib-1.1/src/oss.c: scope_hint: In function 'create_oss_object'
pcaudiolib-1.1-build/pcaudiolib-1.1/src/oss.c:181:16: warning[-Wanalyzer-malloc-leak]: leak of 'self'
#  179|   	self->vtable.strerror = oss_object_strerror;
#  180|   
#  181|-> 	return &self->vtable;
#  182|   }
#  183|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
pcaudiolib-1.1-build/pcaudiolib-1.1/src/pulseaudio.c: scope_hint: In function 'create_pulseaudio_object'
pcaudiolib-1.1-build/pcaudiolib-1.1/src/pulseaudio.c:208:16: warning[-Wanalyzer-malloc-leak]: leak of 'self'
#  206|   	self->vtable.strerror = pulseaudio_object_strerror;
#  207|   
#  208|-> 	return &self->vtable;
#  209|   }
#  210|   

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-88.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namepcaudiolib-1.1-15.fc41
store-results-to/tmp/tmpwwuwqd8a/pcaudiolib-1.1-15.fc41.tar.xz
time-created2024-07-03 16:31:00
time-finished2024-07-03 16:31:56
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpwwuwqd8a/pcaudiolib-1.1-15.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpwwuwqd8a/pcaudiolib-1.1-15.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9