libmodplug-0.8.9.0-29.fc44
List of Findings
Error: COMPILER_WARNING (CWE-758): [#def1]
libmodplug-0.8.9.0/src/fastmix.cpp: scope_hint: In function ‘VOID Mono8BitMix(MODCHANNEL*, int*, int*)’
libmodplug-0.8.9.0/src/fastmix.cpp:291:37: warning[-Wregister]: ISO C++17 does not allow ‘register’ storage class specifier
libmodplug-0.8.9.0/src/fastmix.cpp:678:9: note: in expansion of macro ‘SNDMIX_BEGINSAMPLELOOP8’
Error: COMPILER_WARNING (CWE-758): [#def2]
libmodplug-0.8.9.0/src/fastmix.cpp: scope_hint: In function ‘VOID Mono16BitMix(MODCHANNEL*, int*, int*)’
libmodplug-0.8.9.0/src/fastmix.cpp:299:37: warning[-Wregister]: ISO C++17 does not allow ‘register’ storage class specifier
libmodplug-0.8.9.0/src/fastmix.cpp:684:9: note: in expansion of macro ‘SNDMIX_BEGINSAMPLELOOP16’
Error: COMPILER_WARNING: [#def3]
libmodplug-0.8.9.0/src/fastmix.cpp: scope_hint: In member function ‘UINT CSoundFile::CreateStereoMix(int)’
libmodplug-0.8.9.0/src/fastmix.cpp:1488:30: warning[-Wunused-but-set-variable=]: variable ‘nMasterCh’ set but not used
Error: COMPILER_WARNING: [#def4]
libmodplug-0.8.9.0/src/load_669.cpp: scope_hint: In member function ‘BOOL CSoundFile::Read669(const BYTE*, DWORD)’
libmodplug-0.8.9.0/src/load_669.cpp:51:14: warning[-Wunused-but-set-variable=]: variable ‘b669Ext’ set but not used
Error: COMPILER_WARNING: [#def5]
libmodplug-0.8.9.0/src/load_abc.cpp:428:3: warning[-Wodr]: type 'struct MMFILE' violates the C++ One Definition Rule
libmodplug-0.8.9.0/src/load_mid.cpp:108:3: note: a different type is defined in another translation unit
libmodplug-0.8.9.0/src/load_abc.cpp:426:13: note: the first difference of corresponding definitions is field 'sz'
libmodplug-0.8.9.0/src/load_mid.cpp:106:22: note: a field of same name but different type is defined in another translation unit
libmodplug-0.8.9.0/src/load_abc.cpp:428:3: note: type 'int' should match type 'unsigned int'
Error: COMPILER_WARNING (CWE-252): [#def6]
libmodplug-0.8.9.0/src/load_abc.cpp: scope_hint: In function ‘MMFILE* mmfopen(const char*, const char*)’
libmodplug-0.8.9.0/src/load_abc.cpp:447:14: warning[-Wunused-result]: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’
Error: CPPCHECK_WARNING (CWE-476): [#def7]
libmodplug-0.8.9.0/src/load_abc.cpp:520: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def8]
libmodplug-0.8.9.0/src/load_abc.cpp:521: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def9]
libmodplug-0.8.9.0/src/load_abc.cpp:523: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def10]
libmodplug-0.8.9.0/src/load_abc.cpp:524: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def11]
libmodplug-0.8.9.0/src/load_abc.cpp:525: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def12]
libmodplug-0.8.9.0/src/load_abc.cpp:535: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
Error: CPPCHECK_WARNING (CWE-476): [#def13]
libmodplug-0.8.9.0/src/load_abc.cpp:536: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
Error: CPPCHECK_WARNING (CWE-476): [#def14]
libmodplug-0.8.9.0/src/load_abc.cpp:537: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
Error: CPPCHECK_WARNING (CWE-476): [#def15]
libmodplug-0.8.9.0/src/load_abc.cpp:538: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
Error: CPPCHECK_WARNING (CWE-476): [#def16]
libmodplug-0.8.9.0/src/load_abc.cpp:539: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
Error: CPPCHECK_WARNING (CWE-476): [#def17]
libmodplug-0.8.9.0/src/load_abc.cpp:540: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
Error: CPPCHECK_WARNING (CWE-476): [#def18]
libmodplug-0.8.9.0/src/load_abc.cpp:553: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def19]
libmodplug-0.8.9.0/src/load_abc.cpp:554: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def20]
libmodplug-0.8.9.0/src/load_abc.cpp:555: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def21]
libmodplug-0.8.9.0/src/load_abc.cpp:556: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def22]
libmodplug-0.8.9.0/src/load_abc.cpp:584: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def23]
libmodplug-0.8.9.0/src/load_abc.cpp:585: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def24]
libmodplug-0.8.9.0/src/load_abc.cpp:586: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def25]
libmodplug-0.8.9.0/src/load_abc.cpp:587: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def26]
libmodplug-0.8.9.0/src/load_abc.cpp:598: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def27]
libmodplug-0.8.9.0/src/load_abc.cpp:599: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def28]
libmodplug-0.8.9.0/src/load_abc.cpp:600: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def29]
libmodplug-0.8.9.0/src/load_abc.cpp:601: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def30]
libmodplug-0.8.9.0/src/load_abc.cpp:602: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def31]
libmodplug-0.8.9.0/src/load_abc.cpp:603: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def32]
libmodplug-0.8.9.0/src/load_abc.cpp:604: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def33]
libmodplug-0.8.9.0/src/load_abc.cpp:605: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def34]
libmodplug-0.8.9.0/src/load_abc.cpp:606: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def35]
libmodplug-0.8.9.0/src/load_abc.cpp:607: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def36]
libmodplug-0.8.9.0/src/load_abc.cpp:608: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def37]
libmodplug-0.8.9.0/src/load_abc.cpp:609: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def38]
libmodplug-0.8.9.0/src/load_abc.cpp:610: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def39]
libmodplug-0.8.9.0/src/load_abc.cpp:611: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def40]
libmodplug-0.8.9.0/src/load_abc.cpp:612: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def41]
libmodplug-0.8.9.0/src/load_abc.cpp:613: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def42]
libmodplug-0.8.9.0/src/load_abc.cpp:614: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def43]
libmodplug-0.8.9.0/src/load_abc.cpp:615: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: COMPILER_WARNING (CWE-195): [#def44]
libmodplug-0.8.9.0/src/load_abc.cpp: scope_hint: In function ‘ABCTRACK* abc_locate_track(ABCHANDLE*, const char*, int)’
libmodplug-0.8.9.0/src/load_abc.cpp:829:23: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
Error: COMPILER_WARNING (CWE-195): [#def45]
libmodplug-0.8.9.0/src/load_abc.cpp: scope_hint: In function ‘void abc_add_chord(const char*, ABCHANDLE*, ABCTRACK*, uint32_t)’
libmodplug-0.8.9.0/src/load_abc.cpp:1499:21: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
Error: COMPILER_WARNING (CWE-195): [#def46]
libmodplug-0.8.9.0/src/load_abc.cpp: scope_hint: In function ‘void abc_set_parts(char**, char*)’
libmodplug-0.8.9.0/src/load_abc.cpp:1833:56: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-195): [#def47]
libmodplug-0.8.9.0/src/load_abc.cpp:1839:54: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
Error: CPPCHECK_WARNING (CWE-476): [#def48]
libmodplug-0.8.9.0/src/load_abc.cpp:1872: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: q
Error: COMPILER_WARNING (CWE-195): [#def49]
libmodplug-0.8.9.0/src/load_abc.cpp:1874:20: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
Error: CPPCHECK_WARNING (CWE-476): [#def50]
libmodplug-0.8.9.0/src/load_abc.cpp:1875: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: q
Error: COMPILER_WARNING (CWE-195): [#def51]
libmodplug-0.8.9.0/src/load_abc.cpp:1877:36: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING: [#def52]
libmodplug-0.8.9.0/src/load_abc.cpp: scope_hint: In function ‘ABC_Init()’
libmodplug-0.8.9.0/src/load_abc.cpp:2368:39: warning[-Wformat-overflow=]: ‘%ld’ directive writing between 1 and 11 bytes into a region of size 9
libmodplug-0.8.9.0/src/load_abc.cpp:2368:37: note: directive argument in the range [-2147483646, 2147483648]
/usr/include/bits/stdio2.h:30:34: note: ‘__sprintf_chk’ output between 3 and 13 bytes into a destination of size 10
Error: COMPILER_WARNING: [#def53]
libmodplug-0.8.9.0/src/load_abc.cpp: scope_hint: In function ‘ABC_Init()’
libmodplug-0.8.9.0/src/load_abc.cpp:2376:31: warning[-Wformat-overflow=]: ‘%ld’ directive writing between 1 and 11 bytes into a region of size 9
libmodplug-0.8.9.0/src/load_abc.cpp:2376:29: note: directive argument in the range [-2147483647, 2147483647]
/usr/include/bits/stdio2.h:30:34: note: ‘__sprintf_chk’ output between 3 and 13 bytes into a destination of size 10
Error: COMPILER_WARNING (CWE-195): [#def54]
libmodplug-0.8.9.0/src/load_abc.cpp: scope_hint: In function ‘int abc_MIDI_drum(const char*, ABCHANDLE*)’
libmodplug-0.8.9.0/src/load_abc.cpp:2979:41: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
Error: COMPILER_WARNING (CWE-195): [#def55]
libmodplug-0.8.9.0/src/load_abc.cpp:2983:25: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
Error: COMPILER_WARNING (CWE-195): [#def56]
libmodplug-0.8.9.0/src/load_abc.cpp: scope_hint: In function ‘int abc_MIDI_gchord(const char*, ABCHANDLE*)’
libmodplug-0.8.9.0/src/load_abc.cpp:3033:41: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
Error: COMPILER_WARNING (CWE-195): [#def57]
libmodplug-0.8.9.0/src/load_abc.cpp:3034:25: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
Error: COMPILER_WARNING (CWE-195): [#def58]
libmodplug-0.8.9.0/src/load_abc.cpp: scope_hint: In function ‘void abc_metric_gchord(ABCHANDLE*, int, int)’
libmodplug-0.8.9.0/src/load_abc.cpp:3080:34: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’
Error: COMPILER_WARNING (CWE-195): [#def59]
libmodplug-0.8.9.0/src/load_abc.cpp: scope_hint: In member function ‘BOOL CSoundFile::ReadABC(const uint8_t*, DWORD)’
libmodplug-0.8.9.0/src/load_abc.cpp:3935:64: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘DWORD’ {aka ‘unsigned int’}
Error: COMPILER_WARNING: [#def60]
libmodplug-0.8.9.0/src/load_ams.cpp: scope_hint: In member function ‘BOOL CSoundFile::ReadAMS(LPCBYTE, DWORD)’
libmodplug-0.8.9.0/src/load_ams.cpp:48:14: warning[-Wunused-but-set-variable=]: variable ‘pkinf’ set but not used
Error: COMPILER_WARNING (CWE-483): [#def61]
libmodplug-0.8.9.0/src/load_dmf.cpp: scope_hint: In member function ‘BOOL CSoundFile::ReadDMF(const BYTE*, DWORD)’
libmodplug-0.8.9.0/src/load_dmf.cpp:282:81: warning[-Wmisleading-indentation]: this ‘else’ clause does not guard...
libmodplug-0.8.9.0/src/load_dmf.cpp:282:122: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
Error: COMPILER_WARNING: [#def62]
libmodplug-0.8.9.0/src/load_it.cpp: scope_hint: In member function ‘BOOL CSoundFile::ReadIT(const BYTE*, DWORD)’
libmodplug-0.8.9.0/src/load_it.cpp:166:27: warning[-Wunused-but-set-variable=]: variable ‘channels_used’ set but not used
Error: COMPILER_WARNING: [#def63]
libmodplug-0.8.9.0/src/load_it.cpp: scope_hint: In function ‘void ITUnpack8Bit(signed char*, DWORD, LPBYTE, DWORD, BOOL)’
libmodplug-0.8.9.0/src/load_it.cpp:1221:15: warning[-Wunused-but-set-variable=]: variable ‘wHdr’ set but not used
Error: COMPILER_WARNING: [#def64]
libmodplug-0.8.9.0/src/load_it.cpp: scope_hint: In function ‘void ITUnpack16Bit(signed char*, DWORD, LPBYTE, DWORD, BOOL)’
libmodplug-0.8.9.0/src/load_it.cpp:1303:15: warning[-Wunused-but-set-variable=]: variable ‘wHdr’ set but not used
Error: CPPCHECK_WARNING (CWE-476): [#def65]
libmodplug-0.8.9.0/src/load_mid.cpp:262: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def66]
libmodplug-0.8.9.0/src/load_mid.cpp:263: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def67]
libmodplug-0.8.9.0/src/load_mid.cpp:264: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def68]
libmodplug-0.8.9.0/src/load_mid.cpp:265: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def69]
libmodplug-0.8.9.0/src/load_mid.cpp:266: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def70]
libmodplug-0.8.9.0/src/load_mid.cpp:267: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def71]
libmodplug-0.8.9.0/src/load_mid.cpp:268: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def72]
libmodplug-0.8.9.0/src/load_mid.cpp:269: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def73]
libmodplug-0.8.9.0/src/load_mid.cpp:279: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def74]
libmodplug-0.8.9.0/src/load_mid.cpp:280: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def75]
libmodplug-0.8.9.0/src/load_mid.cpp:281: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def76]
libmodplug-0.8.9.0/src/load_mid.cpp:282: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def77]
libmodplug-0.8.9.0/src/load_mid.cpp:283: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def78]
libmodplug-0.8.9.0/src/load_mid.cpp:284: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def79]
libmodplug-0.8.9.0/src/load_mid.cpp:285: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def80]
libmodplug-0.8.9.0/src/load_mid.cpp:286: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def81]
libmodplug-0.8.9.0/src/load_mid.cpp:287: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: CPPCHECK_WARNING (CWE-476): [#def82]
libmodplug-0.8.9.0/src/load_mid.cpp:288: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: retval
Error: COMPILER_WARNING: [#def83]
libmodplug-0.8.9.0/src/load_mid.cpp: scope_hint: In member function ‘CSoundFile::ReadMID(unsigned char const*, unsigned int) [clone .part.0]’
libmodplug-0.8.9.0/src/load_mid.cpp:1078:48: warning[-Wformat-overflow=]: ‘__sprintf_chk’ may write a terminating nul past the end of the destination
/usr/include/bits/stdio2.h:30:34: note: ‘__sprintf_chk’ output between 13 and 33 bytes into a destination of size 32
Error: COMPILER_WARNING: [#def84]
libmodplug-0.8.9.0/src/load_mid.cpp: scope_hint: In member function ‘CSoundFile::ReadMID(unsigned char const*, unsigned int) [clone .part.0]’
libmodplug-0.8.9.0/src/load_mid.cpp:1132:52: warning[-Wformat-overflow=]: ‘ note ’ directive writing 6 bytes into a region of size between 4 and 24
libmodplug-0.8.9.0/src/load_mid.cpp:1132:30: note: directive argument in the range [0, 255]
/usr/include/bits/stdio2.h:30:34: note: ‘__sprintf_chk’ output between 24 and 46 bytes into a destination of size 40
Error: COMPILER_WARNING (CWE-483): [#def85]
libmodplug-0.8.9.0/src/load_mod.cpp: scope_hint: In member function ‘void CSoundFile::ConvertModCommand(MODCOMMAND*) const’
libmodplug-0.8.9.0/src/load_mod.cpp:42:33: warning[-Wmisleading-indentation]: this ‘if’ clause does not guard...
libmodplug-0.8.9.0/src/load_mod.cpp:42:89: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
Error: COMPILER_WARNING: [#def86]
libmodplug-0.8.9.0/src/load_okt.cpp: scope_hint: In member function ‘BOOL CSoundFile::ReadOKT(const BYTE*, DWORD)’
libmodplug-0.8.9.0/src/load_okt.cpp:46:28: warning[-Wunused-but-set-variable=]: variable ‘npatterns’ set but not used
Error: COMPILER_WARNING (CWE-252): [#def87]
libmodplug-0.8.9.0/src/load_pat.cpp: scope_hint: In function ‘void pat_init_patnames()’
libmodplug-0.8.9.0/src/load_pat.cpp:281:54: warning[-Wunused-result]: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’
libmodplug-0.8.9.0/src/load_pat.cpp:387:25: note: in expansion of macro ‘_mm_fgets’
Error: COMPILER_WARNING (CWE-252): [#def88]
libmodplug-0.8.9.0/src/load_pat.cpp: scope_hint: In function ‘void pat_read_waveheader(FILE*, WaveHeader*, int)’
libmodplug-0.8.9.0/src/load_pat.cpp:284:54: warning[-Wunused-result]: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’
libmodplug-0.8.9.0/src/load_pat.cpp:517:33: note: in expansion of macro ‘_mm_read_UBYTES’
Error: COMPILER_WARNING (CWE-252): [#def89]
libmodplug-0.8.9.0/src/load_pat.cpp: scope_hint: In function ‘void pat_readpat(int, char*, int)’
libmodplug-0.8.9.0/src/load_pat.cpp:285:54: warning[-Wunused-result]: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’
libmodplug-0.8.9.0/src/load_pat.cpp:695:9: note: in expansion of macro ‘_mm_read_SBYTES’
Error: COMPILER_WARNING: [#def90]
libmodplug-0.8.9.0/src/load_pat.cpp: scope_hint: In function ‘pat_init_patnames’
libmodplug-0.8.9.0/src/load_pat.cpp:373:16: warning[-Wstringop-truncation]: ‘strncpy’ output may be truncated copying 4095 bytes from a string of length 4095
Error: COMPILER_WARNING: [#def91]
libmodplug-0.8.9.0/src/load_pat.cpp:1026:24: warning[-Wstringop-truncation]: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 31
Error: COMPILER_WARNING: [#def92]
libmodplug-0.8.9.0/src/load_pat.cpp: scope_hint: In function ‘PAT_Load_Instruments’
libmodplug-0.8.9.0/src/load_pat.cpp:1028:24: warning[-Wstringop-truncation]: ‘strncpy’ output may be truncated copying 31 bytes from a string of length 782335
Error: COMPILER_WARNING: [#def93]
libmodplug-0.8.9.0/src/load_pat.cpp: scope_hint: In function ‘PATsample(CSoundFile*, _MODINSTRUMENT*, int, int)’
libmodplug-0.8.9.0/src/load_pat.cpp:1066:16: warning[-Wstringop-truncation]: ‘__strncpy_chk’ output may be truncated copying 31 bytes from a string of length 255
Error: COMPILER_WARNING: [#def94]
libmodplug-0.8.9.0/src/load_psm.cpp: scope_hint: In member function ‘BOOL CSoundFile::ReadPSM(LPCBYTE, DWORD)’
libmodplug-0.8.9.0/src/load_psm.cpp:103:15: warning[-Wunused-but-set-variable=]: variable ‘smpnames’ set but not used
Error: COMPILER_WARNING (CWE-704): [#def95]
libmodplug-0.8.9.0/src/snd_dsp.cpp:102:12: warning[-Wlto-type-mismatch]: type of 'MixSoundBuffer' does not match original declaration
libmodplug-0.8.9.0/src/fastmix.cpp:17:5: note: array types have different bounds
libmodplug-0.8.9.0/src/fastmix.cpp:17:5: note: 'MixSoundBuffer' was previously declared here
Scan Properties
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-175.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | libmodplug-0.8.9.0-29.fc44 |
| store-results-to | /tmp/tmp7gp9fbn9/libmodplug-0.8.9.0-29.fc44.tar.xz |
| time-created | 2026-08-03 17:32:08 |
| time-finished | 2026-08-03 17:34:10 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp7gp9fbn9/libmodplug-0.8.9.0-29.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp7gp9fbn9/libmodplug-0.8.9.0-29.fc44.src.rpm' |
| tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |