libffado-2.4.9-3.fc42
List of Findings
Error: COMPILER_WARNING (CWE-563): [#def1]
libffado-2.4.9-build/libffado-2.4.9/cache/conftest_7c8d9da9f38e9e1b717729bacb3f12aa_0.c: scope_hint: In function ‘main’
libffado-2.4.9-build/libffado-2.4.9/cache/conftest_7c8d9da9f38e9e1b717729bacb3f12aa_0.c:6:3: warning[-Wunused-value]: statement with no effect
Error: COMPILER_WARNING (CWE-563): [#def2]
libffado-2.4.9-build/libffado-2.4.9/cache/conftest_e05fedd4c0c2a154158929f57c9b4d78_0.c: scope_hint: In function ‘main’
libffado-2.4.9-build/libffado-2.4.9/cache/conftest_e05fedd4c0c2a154158929f57c9b4d78_0.c:6:3: warning[-Wunused-value]: statement with no effect
Error: COMPILER_WARNING (CWE-252): [#def3]
libffado-2.4.9-build/libffado-2.4.9/src/bebob/bebob_avdevice.cpp: scope_hint: In member function ‘virtual bool BeBoB::Device::loadFromCache()’
libffado-2.4.9-build/libffado-2.4.9/src/bebob/bebob_avdevice.cpp:838:13: warning[-Wunused-result]: ignoring return value of ‘int asprintf(char**, const char*, ...)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def4]
libffado-2.4.9-build/libffado-2.4.9/src/bebob/bebob_avdevice.cpp: scope_hint: In member function ‘virtual bool BeBoB::Device::saveCache()’
libffado-2.4.9-build/libffado-2.4.9/src/bebob/bebob_avdevice.cpp:914:13: warning[-Wunused-result]: ignoring return value of ‘int asprintf(char**, const char*, ...)’ declared with attribute ‘warn_unused_result’
Error: CPPCHECK_WARNING (CWE-909): [#def5]
libffado-2.4.9-build/libffado-2.4.9/src/bebob/bebob_avplug.cpp:384: error[uninitStructMember]: Uninitialized struct member: clusterInfo.m_buildSource
Error: CPPCHECK_WARNING (CWE-457): [#def6]
libffado-2.4.9-build/libffado-2.4.9/src/bebob/bebob_avplug.cpp:384: error[uninitvar]: Uninitialized variable: clusterInfo.m_buildSource
Error: COMPILER_WARNING (CWE-457): [#def7]
libffado-2.4.9-build/libffado-2.4.9/src/fireworks/efc/efc_cmds_hardware.cpp: scope_hint: In member function ‘FireWorks::EfcPolledValuesCmd::showEfcCmd()’
libffado-2.4.9-build/libffado-2.4.9/src/fireworks/efc/efc_cmds_hardware.cpp:259:18: warning[-Wmaybe-uninitialized]: ‘i’ may be used uninitialized
libffado-2.4.9-build/libffado-2.4.9/src/fireworks/efc/efc_cmds_hardware.cpp:238:18: note: ‘i’ was declared here
Error: CPPCHECK_WARNING (CWE-457): [#def8]
libffado-2.4.9-build/libffado-2.4.9/src/fireworks/fireworks_session_block.cpp:231: error[uninitvar]: Uninitialized variable: header
Error: CPPCHECK_WARNING (CWE-823): [#def9]
libffado-2.4.9-build/libffado-2.4.9/src/libavc/general/avc_extended_cmd_generic.cpp:452: error[arrayIndexOutOfBounds]: Array 'plugAddressDirectionStrings[3]' accessed at index 255, which is out of bounds.
Error: COMPILER_WARNING (CWE-252): [#def10]
libffado-2.4.9-build/libffado-2.4.9/src/libavc/general/avc_extended_plug_info.cpp: scope_hint: In member function ‘virtual bool AVC::ExtendedPlugInfoInfoType::serialize(Util::Cmd::IOSSerialize&)’
libffado-2.4.9-build/libffado-2.4.9/src/libavc/general/avc_extended_plug_info.cpp:633:13: warning[-Wunused-result]: ignoring return value of ‘int asprintf(char**, const char*, ...)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def11]
libffado-2.4.9-build/libffado-2.4.9/src/libavc/general/avc_generic.cpp: scope_hint: In member function ‘virtual bool AVC::AVCCommand::serialize(Util::Cmd::IOSSerialize&)’
libffado-2.4.9-build/libffado-2.4.9/src/libavc/general/avc_generic.cpp:62:13: warning[-Wunused-result]: ignoring return value of ‘int asprintf(char**, const char*, ...)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def12]
libffado-2.4.9-build/libffado-2.4.9/src/libavc/general/avc_generic.cpp:67:13: warning[-Wunused-result]: ignoring return value of ‘int asprintf(char**, const char*, ...)’ declared with attribute ‘warn_unused_result’
Error: CPPCHECK_WARNING (CWE-909): [#def13]
libffado-2.4.9-build/libffado-2.4.9/src/libavc/musicsubunit/avc_musicsubunit.cpp:210: error[uninitStructMember]: Uninitialized struct member: cinfo.m_buildSource
Error: CPPCHECK_WARNING (CWE-457): [#def14]
libffado-2.4.9-build/libffado-2.4.9/src/libavc/musicsubunit/avc_musicsubunit.cpp:210: error[uninitvar]: Uninitialized variable: cinfo.m_buildSource
Error: CPPCHECK_WARNING (CWE-664): [#def15]
libffado-2.4.9-build/libffado-2.4.9/src/libieee1394/IsoHandlerManager.cpp:954: error[invalidContainer]: Using iterator to member container 'm_StreamProcessors' that may be invalid.
Error: COMPILER_WARNING (CWE-252): [#def16]
libffado-2.4.9-build/libffado-2.4.9/src/libieee1394/configrom.cpp: scope_hint: In member function ‘const std::string ConfigRom::getGuidString() const’
libffado-2.4.9-build/libffado-2.4.9/src/libieee1394/configrom.cpp:406:13: warning[-Wunused-result]: ignoring return value of ‘int asprintf(char**, const char*, ...)’ declared with attribute ‘warn_unused_result’
Error: CPPCHECK_WARNING (CWE-590): [#def17]
libffado-2.4.9-build/libffado-2.4.9/src/libieee1394/csr1212.c:757: error[autovarInvalidDeallocation]: Deallocation of an auto-variable (dentry) results in undefined behaviour.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
libffado-2.4.9-build/libffado-2.4.9/src/libieee1394/csr1212.c: scope_hint: In function ‘csr1212_parse_bus_info_block’
libffado-2.4.9-build/libffado-2.4.9/src/libieee1394/csr1212.c:1294:38: warning[-Wanalyzer-malloc-leak]: leak of ‘cr’
libffado-2.4.9-build/libffado-2.4.9/src/libieee1394/csr1212.c:61: included_from: Included from here.
libffado-2.4.9-build/libffado-2.4.9/src/libieee1394/csr1212.c:1284:14: note: in expansion of macro ‘CSR1212_MALLOC’
libffado-2.4.9-build/libffado-2.4.9/src/libieee1394/csr1212.c:1284:14: note: in expansion of macro ‘CSR1212_MALLOC’
Error: CPPCHECK_WARNING (CWE-909): [#def19]
libffado-2.4.9-build/libffado-2.4.9/src/libstreaming/amdtp/AmdtpReceiveStreamProcessor.cpp:549: error[uninitStructMember]: Uninitialized struct member: p.enabled
Error: CPPCHECK_WARNING (CWE-457): [#def20]
libffado-2.4.9-build/libffado-2.4.9/src/libstreaming/amdtp/AmdtpReceiveStreamProcessor.cpp:549: error[uninitvar]: Uninitialized variable: p.enabled
Error: CPPCHECK_WARNING (CWE-909): [#def21]
libffado-2.4.9-build/libffado-2.4.9/src/libstreaming/amdtp/AmdtpReceiveStreamProcessor.cpp:584: error[uninitStructMember]: Uninitialized struct member: p.enabled
Error: CPPCHECK_WARNING (CWE-457): [#def22]
libffado-2.4.9-build/libffado-2.4.9/src/libstreaming/amdtp/AmdtpReceiveStreamProcessor.cpp:584: error[uninitvar]: Uninitialized variable: p.enabled
Error: CPPCHECK_WARNING (CWE-909): [#def23]
libffado-2.4.9-build/libffado-2.4.9/src/libstreaming/amdtp/AmdtpTransmitStreamProcessor.cpp:1147: error[uninitStructMember]: Uninitialized struct member: p.enabled
Error: CPPCHECK_WARNING (CWE-457): [#def24]
libffado-2.4.9-build/libffado-2.4.9/src/libstreaming/amdtp/AmdtpTransmitStreamProcessor.cpp:1147: error[uninitvar]: Uninitialized variable: p.enabled
Error: CPPCHECK_WARNING (CWE-909): [#def25]
libffado-2.4.9-build/libffado-2.4.9/src/libstreaming/amdtp/AmdtpTransmitStreamProcessor.cpp:1182: error[uninitStructMember]: Uninitialized struct member: p.enabled
Error: CPPCHECK_WARNING (CWE-457): [#def26]
libffado-2.4.9-build/libffado-2.4.9/src/libstreaming/amdtp/AmdtpTransmitStreamProcessor.cpp:1182: error[uninitvar]: Uninitialized variable: p.enabled
Error: COMPILER_WARNING (CWE-252): [#def27]
libffado-2.4.9-build/libffado-2.4.9/src/libutil/Watchdog.cpp: scope_hint: In member function ‘void Util::Watchdog::WatchdogTask::ReqStop()’
libffado-2.4.9-build/libffado-2.4.9/src/libutil/Watchdog.cpp:94:10: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def28]
libffado-2.4.9-build/libffado-2.4.9/src/libutil/cmd_serialize.cpp: scope_hint: In member function ‘virtual bool Util::Cmd::StringSerializer::write(byte_t, const char*)’
libffado-2.4.9-build/libffado-2.4.9/src/libutil/cmd_serialize.cpp:82:13: warning[-Wunused-result]: ignoring return value of ‘int asprintf(char**, const char*, ...)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def29]
libffado-2.4.9-build/libffado-2.4.9/src/libutil/cmd_serialize.cpp: scope_hint: In member function ‘virtual bool Util::Cmd::StringSerializer::write(uint16_t, const char*)’
libffado-2.4.9-build/libffado-2.4.9/src/libutil/cmd_serialize.cpp:96:13: warning[-Wunused-result]: ignoring return value of ‘int asprintf(char**, const char*, ...)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def30]
libffado-2.4.9-build/libffado-2.4.9/src/libutil/cmd_serialize.cpp: scope_hint: In member function ‘virtual bool Util::Cmd::StringSerializer::write(quadlet_t, const char*)’
libffado-2.4.9-build/libffado-2.4.9/src/libutil/cmd_serialize.cpp:110:13: warning[-Wunused-result]: ignoring return value of ‘int asprintf(char**, const char*, ...)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def31]
libffado-2.4.9-build/libffado-2.4.9/src/libutil/cmd_serialize.cpp: scope_hint: In member function ‘virtual bool Util::Cmd::StringSerializer::write(const char*, size_t, const char*)’
libffado-2.4.9-build/libffado-2.4.9/src/libutil/cmd_serialize.cpp:123:13: warning[-Wunused-result]: ignoring return value of ‘int asprintf(char**, const char*, ...)’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
libffado-2.4.9-build/libffado-2.4.9/src/libutil/ringbuffer.c: scope_hint: In function ‘ffado_ringbuffer_create’
libffado-2.4.9-build/libffado-2.4.9/src/libutil/ringbuffer.c:74:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rb’
Error: COMPILER_WARNING (CWE-252): [#def33]
libffado-2.4.9-build/libffado-2.4.9/src/libutil/serialize_libxml.cpp: scope_hint: In member function ‘void Util::XMLSerialize::writeVersion()’
libffado-2.4.9-build/libffado-2.4.9/src/libutil/serialize_libxml.cpp:85:13: warning[-Wunused-result]: ignoring return value of ‘int asprintf(char**, const char*, ...)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def34]
libffado-2.4.9-build/libffado-2.4.9/src/libutil/serialize_libxml.cpp: scope_hint: In member function ‘virtual bool Util::XMLSerialize::write(std::string, long long int)’
libffado-2.4.9-build/libffado-2.4.9/src/libutil/serialize_libxml.cpp:120:13: warning[-Wunused-result]: ignoring return value of ‘int asprintf(char**, const char*, ...)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-762): [#def35]
libffado-2.4.9-build/libffado-2.4.9/src/libutil/unittests.cpp:355:12: warning[-Wmismatched-new-delete]: ‘operator delete(void*)’ called on pointer returned from a mismatched allocation function
libffado-2.4.9-build/libffado-2.4.9/src/libutil/unittests.cpp: scope_hint: In function ‘testU3()’
libffado-2.4.9-build/libffado-2.4.9/src/libutil/unittests.cpp:389:28: note: returned from ‘strdup’
Error: COMPILER_WARNING (CWE-252): [#def36]
libffado-2.4.9-build/libffado-2.4.9/src/motu/motu_avdevice.cpp: scope_hint: In member function ‘virtual bool Motu::MotuDevice::prepare()’
libffado-2.4.9-build/libffado-2.4.9/src/motu/motu_avdevice.cpp:1189:17: warning[-Wunused-result]: ignoring return value of ‘int asprintf(char**, const char*, ...)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def37]
libffado-2.4.9-build/libffado-2.4.9/src/motu/motu_avdevice.cpp:1249:17: warning[-Wunused-result]: ignoring return value of ‘int asprintf(char**, const char*, ...)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def38]
libffado-2.4.9-build/libffado-2.4.9/src/motu/motu_avdevice.cpp: scope_hint: In member function ‘bool Motu::MotuDevice::addDirPortGroups(Streaming::Port::E_Direction, unsigned int, unsigned int, unsigned int)’
libffado-2.4.9-build/libffado-2.4.9/src/motu/motu_avdevice.cpp:1963:21: warning[-Wunused-result]: ignoring return value of ‘int asprintf(char**, const char*, ...)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def39]
libffado-2.4.9-build/libffado-2.4.9/src/rme/rme_shm.cpp: scope_hint: In function ‘int rme_shm_open(std::string, rme_shm_t**)’
libffado-2.4.9-build/libffado-2.4.9/src/rme/rme_shm.cpp:109:26: warning[-Wunused-result]: ignoring return value of ‘int ftruncate(int, __off_t)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def40]
libffado-2.4.9-build/libffado-2.4.9/support/alsa/alsa_plugin.cpp: scope_hint: In function ‘int snd_pcm_ffado_pollfunction(snd_pcm_ffado_t*)’
libffado-2.4.9-build/libffado-2.4.9/support/alsa/alsa_plugin.cpp:308:10: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def41]
libffado-2.4.9-build/libffado-2.4.9/support/alsa/alsa_plugin.cpp: scope_hint: In function ‘int snd_pcm_ffado_poll_revents(snd_pcm_ioplug_t*, pollfd*, unsigned int, short unsigned int*)’
libffado-2.4.9-build/libffado-2.4.9/support/alsa/alsa_plugin.cpp:360:9: warning[-Wunused-result]: ignoring return value of ‘ssize_t read(int, void*, size_t)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def42]
libffado-2.4.9-build/libffado-2.4.9/tests/dumpiso_mod.cpp: scope_hint: In function ‘void open_dumpfile()’
libffado-2.4.9-build/libffado-2.4.9/tests/dumpiso_mod.cpp:184:18: warning[-Wunused-result]: ignoring return value of ‘int ftruncate(int, __off_t)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def43]
libffado-2.4.9-build/libffado-2.4.9/tests/dumpiso_mod.cpp: scope_hint: In function ‘raw1394_iso_disposition iso_handler(raw1394handle_t, unsigned char*, unsigned int, unsigned char, unsigned char, unsigned char, unsigned int, unsigned int)’
libffado-2.4.9-build/libffado-2.4.9/tests/dumpiso_mod.cpp:219:14: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def44]
libffado-2.4.9-build/libffado-2.4.9/tests/dumpiso_mod.cpp:220:14: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def45]
libffado-2.4.9-build/libffado-2.4.9/tests/dumpiso_mod.cpp:221:14: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def46]
libffado-2.4.9-build/libffado-2.4.9/tests/dumpiso_mod.cpp:222:14: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def47]
libffado-2.4.9-build/libffado-2.4.9/tests/dumpiso_mod.cpp:223:14: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def48]
libffado-2.4.9-build/libffado-2.4.9/tests/dumpiso_mod.cpp:224:14: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def49]
libffado-2.4.9-build/libffado-2.4.9/tests/dumpiso_mod.cpp:225:14: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def50]
libffado-2.4.9-build/libffado-2.4.9/tests/dumpiso_mod.cpp:226:14: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def51]
libffado-2.4.9-build/libffado-2.4.9/tests/dumpiso_mod.cpp:228:14: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def52]
libffado-2.4.9-build/libffado-2.4.9/tests/dumpiso_mod.cpp:241:14: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def53]
libffado-2.4.9-build/libffado-2.4.9/tests/scan-devreg.cpp: scope_hint: In function ‘int main(int, char**)’
libffado-2.4.9-build/libffado-2.4.9/tests/scan-devreg.cpp:318:14: warning[-Wunused-result]: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’
Error: CPPCHECK_WARNING (CWE-457): [#def54]
libffado-2.4.9-build/libffado-2.4.9/tests/test-focusrite.cpp:191: error[legacyUninitvar]: Uninitialized variable: old_vals[id]
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-42.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | libffado-2.4.9-3.fc42 |
store-results-to | /tmp/tmpqujl83mf/libffado-2.4.9-3.fc42.tar.xz |
time-created | 2024-11-13 01:21:28 |
time-finished | 2024-11-13 01:24:04 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpqujl83mf/libffado-2.4.9-3.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpqujl83mf/libffado-2.4.9-3.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |