kf6-kimageformats-6.13.0-3.fc43

List of Findings

Error: COMPILER_WARNING (CWE-1164): [#def1]
kimageformats-6.13.0/src/imageformats/jp2.cpp:54:13: warning[-Wunused-function]: ‘void warning_callback(const char*, void*)’ defined but not used
#   54 | static void warning_callback(const char *msg, void *client_data)
#      |             ^~~~~~~~~~~~~~~~
#   52|   }
#   53|   
#   54|-> static void warning_callback(const char *msg, void *client_data)
#   55|   {
#   56|       Q_UNUSED(client_data)

Error: COMPILER_WARNING (CWE-1164): [#def2]
kimageformats-6.13.0/src/imageformats/jp2.cpp:60:13: warning[-Wunused-function]: ‘void info_callback(const char*, void*)’ defined but not used
#   60 | static void info_callback(const char *msg, void *client_data)
#      |             ^~~~~~~~~~~~~
#   58|   }
#   59|   
#   60|-> static void info_callback(const char *msg, void *client_data)
#   61|   {
#   62|       Q_UNUSED(client_data)

Error: COMPILER_WARNING: [#def3]
kimageformats-6.13.0/src/imageformats/pic.cpp: scope_hint: In member function ‘SoftimagePICHandler::write(QImage const&)’
kimageformats-6.13.0/src/imageformats/pic.cpp:84:12: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 80 equals destination size
#   84 |     strncpy(comment, header.comment.constData(), sizeof(comment));
#      |            ^
#   82|   
#   83|       char comment[80] = {};
#   84|->     strncpy(comment, header.comment.constData(), sizeof(comment));
#   85|       s.writeRawData(comment, sizeof(comment));
#   86|   

Error: COMPILER_WARNING: [#def4]
kimageformats-6.13.0/src/imageformats/pic.cpp:88:12: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 4 equals destination size
#   88 |     strncpy(id, header.id.constData(), sizeof(id));
#      |            ^
#   86|   
#   87|       char id[4] = {};
#   88|->     strncpy(id, header.id.constData(), sizeof(id));
#   89|       s.writeRawData(id, sizeof(id));
#   90|   

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
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-250.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-namekf6-kimageformats-6.13.0-3.fc43
store-results-to/tmp/tmpphipoq18/kf6-kimageformats-6.13.0-3.fc43.tar.xz
time-created2025-04-25 13:31:54
time-finished2025-04-25 13:34:21
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpphipoq18/kf6-kimageformats-6.13.0-3.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpphipoq18/kf6-kimageformats-6.13.0-3.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9