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/jp2.cpp:61:13: warning[-Wunused-function]: ‘void warning_callback(const char*, void*)’ defined but not used # 61 | static void warning_callback(const char *msg, void *client_data) # | ^~~~~~~~~~~~~~~~ # 59| } # 60| # 61|-> static void warning_callback(const char *msg, void *client_data) # 62| { # 63| Q_UNUSED(client_data) Error: COMPILER_WARNING (CWE-1164): [#def3] kimageformats-6.22.0/src/imageformats/jp2.cpp:67:13: warning[-Wunused-function]: ‘void info_callback(const char*, void*)’ defined but not used # 67 | static void info_callback(const char *msg, void *client_data) # | ^~~~~~~~~~~~~ # 65| } # 66| # 67|-> static void info_callback(const char *msg, void *client_data) # 68| { # 69| Q_UNUSED(client_data) Error: COMPILER_WARNING: [#def4] kimageformats-6.22.0/src/imageformats/pic.cpp: scope_hint: In member function ‘SoftimagePICHandler::write(QImage const&)’ kimageformats-6.22.0/src/imageformats/pic.cpp:91:12: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 80 equals destination size # 91 | strncpy(comment, header.comment.constData(), sizeof(comment)); # | ^ # 89| # 90| char comment[80] = {}; # 91|-> strncpy(comment, header.comment.constData(), sizeof(comment)); # 92| s.writeRawData(comment, sizeof(comment)); # 93| Error: COMPILER_WARNING: [#def5] kimageformats-6.22.0/src/imageformats/pic.cpp:95:12: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 4 equals destination size # 95 | strncpy(id, header.id.constData(), sizeof(id)); # | ^ # 93| # 94| char id[4] = {}; # 95|-> strncpy(id, header.id.constData(), sizeof(id)); # 96| s.writeRawData(id, sizeof(id)); # 97| Error: COMPILER_WARNING (CWE-1164): [#def6] 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) {
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| 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-154.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.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | kf6-kimageformats-6.22.0-1.fc44 |
| store-results-to | /tmp/tmpsgcl0hx6/kf6-kimageformats-6.22.0-1.fc44.tar.xz |
| time-created | 2026-01-08 17:46:31 |
| time-finished | 2026-01-08 17:49:29 |
| tool | csmock |
| 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-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |