Newly introduced findings

List of Findings

Error: COMPILER_WARNING (CWE-843): [#def1]
kimageformats-6.22.0/src/imageformats/exr.cpp: scope_hint: In member function ‘virtual bool EXRHandler::read(QImage*)’
kimageformats-6.22.0/src/imageformats/exr.cpp:407:20: warning[-Wclass-memaccess]: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct Imf_3_2::Rgba’; use assignment or value-initialization instead
#  407 |         std::memset(pixels[0], 0, sizeof(Imf::Rgba) * EXR_LINES_PER_BLOCK * width);
#      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/OpenEXR/ImfRgbaFile.h:23: included_from: Included from here.
kimageformats-6.22.0/src/imageformats/exr.cpp:70: included_from: Included from here.
/usr/include/OpenEXR/ImfRgba.h:26:8: note: ‘struct Imf_3_2::Rgba’ declared here
#   26 | struct Rgba
#      |        ^~~~
#  405|           Imf::Array2D<Imf::Rgba> pixels;
#  406|           pixels.resizeErase(EXR_LINES_PER_BLOCK, width);
#  407|->         std::memset(pixels[0], 0, sizeof(Imf::Rgba) * EXR_LINES_PER_BLOCK * width);
#  408|           bool isRgba = image.hasAlphaChannel();
#  409|   

Error: COMPILER_WARNING (CWE-1164): [#def2]
kimageformats-6.22.0/src/imageformats/avif.cpp:17: included_from: Included from here.
kimageformats-6.22.0/src/imageformats/util_p.h:145:19: warning[-Wunused-function]: ‘QByteArray deviceRead(QIODevice*, qint64)’ defined but not used
#  145 | static QByteArray deviceRead(QIODevice *d, qint64 maxSize)
#      |                   ^~~~~~~~~~
#  143|    * \return The byte array read.
#  144|    */
#  145|-> static QByteArray deviceRead(QIODevice *d, qint64 maxSize)
#  146|   {
#  147|       if (d == nullptr) {

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.0
diffbase-analyzer-version-gcc-analyzer16.0.0
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-154.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.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namekf6-kimageformats-6.18.0-1.fc43
diffbase-store-results-to/tmp/tmpoi3qobv9/kf6-kimageformats-6.18.0-1.fc43.tar.xz
diffbase-time-created2026-01-08 17:42:46
diffbase-time-finished2026-01-08 17:46:12
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpoi3qobv9/kf6-kimageformats-6.18.0-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpoi3qobv9/kf6-kimageformats-6.18.0-1.fc43.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-154.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namekf6-kimageformats-6.22.0-1.fc44
store-results-to/tmp/tmpsgcl0hx6/kf6-kimageformats-6.22.0-1.fc44.tar.xz
time-created2026-01-08 17:46:31
time-finished2026-01-08 17:49:29
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpsgcl0hx6/kf6-kimageformats-6.22.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpsgcl0hx6/kf6-kimageformats-6.22.0-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9