Fixed findings

List of Findings

Error: COMPILER_WARNING (CWE-457): [#def1]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Avc.cpp: scope_hint: In member function ‘MediaInfoLib::File_Avc::Header_Parse()’
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Avc.cpp:1883:9: warning[-Wmaybe-uninitialized]: ‘Size’ may be used uninitialized
# 1883 |         if (Size>Element_Size-Element_Offset)
#      |         ^~
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Avc.cpp:1855:16: note: ‘Size’ was declared here
# 1855 |         int64u Size;
#      |                ^~~~
# 1881|                       break;

# 1882|           }

# 1883|->         if (Size>Element_Size-Element_Offset)

# 1884|           {

# 1885|               if (File_Offset+Buffer_Size==File_Size)


Error: COMPILER_WARNING (CWE-195): [#def2]
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp: scope_hint: In member function ‘virtual void MediaInfoLib::File_Hevc::Header_Parse()’
libmediainfo-24.04-build/MediaInfoLib/Source/MediaInfo/Video/File_Hevc.cpp:1132:17: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘ZenLib::int32u’ {aka ‘unsigned int’} and ‘int’
# 1132 |         if (Size<lengthSizeMinusOne+1+2 || Buffer_Offset+Size>Buffer_Size || (Buffer_Offset+Size!=Buffer_Size && Buffer_Offset+Size+lengthSizeMinusOne+1>Buffer_Size))
#      |             ~~~~^~~~~~~~~~~~~~~~~~~~~~~
# 1130|   

# 1131|           //Coherency checking

# 1132|->         if (Size<lengthSizeMinusOne+1+2 || Buffer_Offset+Size>Buffer_Size || (Buffer_Offset+Size!=Buffer_Size && Buffer_Offset+Size+lengthSizeMinusOne+1>Buffer_Size))

# 1133|               Size=Buffer_Size-Buffer_Offset;

# 1134|   


Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer15.0.0
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-231.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-namelibmediainfo-24.11-1.fc42
diffbase-store-results-to/tmp/tmpm_h818ty/libmediainfo-24.11-1.fc42.tar.xz
diffbase-time-created2024-11-13 01:37:47
diffbase-time-finished2024-11-13 01:43:06
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpm_h818ty/libmediainfo-24.11-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpm_h818ty/libmediainfo-24.11-1.fc42.src.rpm'
diffbase-tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-231.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibmediainfo-24.04-2.fc41
store-results-to/tmp/tmpz489y6gn/libmediainfo-24.04-2.fc41.tar.xz
time-created2024-11-13 01:31:58
time-finished2024-11-13 01:37:30
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpz489y6gn/libmediainfo-24.04-2.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpz489y6gn/libmediainfo-24.04-2.fc41.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9