Newly introduced findings

List of Findings

Error: CPPCHECK_WARNING (CWE-628): [#def1]
game-music-emu-0.6.4/gme/ext/emu2413.c:271: warning[invalidFunctionArg]: Invalid log10() argument nr 1. The value is 0 but the valid values are '4.94066e-324:'.
#  269|       return (DB_MUTE - 1);
#  270|     else
#  271|->     return Min (-(e_int32) (20.0 * log10 (d) / DB_STEP), DB_MUTE-1);  /* 0 -- 127 */
#  272|   }
#  273|   

Error: CPPCHECK_WARNING (CWE-758): [#def2]
game-music-emu-0.6.4/gme/ext/emu2413.c:1071: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1069|   
# 1070|   #ifndef EMU2413_COMPACTION
# 1071|->   opll->realstep = (e_uint32) ((1 << 31) / rate);
# 1072|     opll->opllstep = (e_uint32) ((1 << 31) / (clk / 72));
# 1073|     opll->oplltime = 0;

Error: CPPCHECK_WARNING (CWE-758): [#def3]
game-music-emu-0.6.4/gme/ext/emu2413.c:1072: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1070|   #ifndef EMU2413_COMPACTION
# 1071|     opll->realstep = (e_uint32) ((1 << 31) / rate);
# 1072|->   opll->opllstep = (e_uint32) ((1 << 31) / (clk / 72));
# 1073|     opll->oplltime = 0;
# 1074|     /*for (i = 0; i < 14; i++)

Error: COMPILER_WARNING (CWE-252): [#def4]
game-music-emu-0.6.4/player/Music_Player.cpp: scope_hint: In function ‘const arc_type_t* identify_archive(const char*)’
game-music-emu-0.6.4/player/Music_Player.cpp:103:14: warning[-Wunused-result]: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’
#  103 |         fread( h, 1, sizeof h, in );
#      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~
#  101|   	if ( !in )
#  102|   		return nullptr;
#  103|-> 	fread( h, 1, sizeof h, in );
#  104|   	fclose( in );
#  105|   	header = BLARGG_4CHAR( h[0], h[1], h[2], h[3] );

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
diffbase-analyzer-version-clippy1.86.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.0.1
diffbase-analyzer-version-gcc-analyzer15.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-241.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.20250425.124705.g1c7c448.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namegame-music-emu-0.6.3-17.fc42
diffbase-store-results-to/tmp/tmpfm4bz4lv/game-music-emu-0.6.3-17.fc42.tar.xz
diffbase-time-created2025-04-25 12:31:22
diffbase-time-finished2025-04-25 12:33:07
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpfm4bz4lv/game-music-emu-0.6.3-17.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpfm4bz4lv/game-music-emu-0.6.3-17.fc42.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-241.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-namegame-music-emu-0.6.4-1.fc43
store-results-to/tmp/tmp0jolunkn/game-music-emu-0.6.4-1.fc43.tar.xz
time-created2025-04-25 12:33:26
time-finished2025-04-25 12:34:50
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp0jolunkn/game-music-emu-0.6.4-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp0jolunkn/game-music-emu-0.6.4-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9