libkexiv2-25.12.0-1.fc44

List of Findings

Error: COMPILER_WARNING (CWE-477): [#def1]
libkexiv2-25.12.0/src/kexiv2.cpp: scope_hint: In static member function ‘static bool KExiv2Iface::KExiv2::initializeExiv2()’
libkexiv2-25.12.0/src/kexiv2.cpp:69:22: warning[-Wdeprecated-declarations]: ‘bool Exiv2::enableBMFF(bool)’ is deprecated
#   69 |     Exiv2::enableBMFF(true);
#      |     ~~~~~~~~~~~~~~~~~^~~~~~
/usr/include/exiv2/exiv2.hpp:9: included_from: Included from here.
libkexiv2-25.12.0/src/kexiv2_p.h:44: included_from: Included from here.
libkexiv2-25.12.0/src/kexiv2.cpp:9: included_from: Included from here.
/usr/include/exiv2/bmffimage.hpp:16:30: note: declared here
#   16 | [[deprecated]] EXIV2API bool enableBMFF(bool enable = true);
#      |                              ^~~~~~~~~~
#   67|   
#   68|   #ifdef EXV_ENABLE_BMFF
#   69|->     Exiv2::enableBMFF(true);
#   70|   #endif
#   71|   

Error: COMPILER_WARNING (CWE-195): [#def2]
libkexiv2-25.12.0/src/kexiv2exif.cpp: scope_hint: In member function ‘QVariant KExiv2Iface::KExiv2::getExifTagVariant(const char*, bool, bool, int) const’
libkexiv2-25.12.0/src/kexiv2exif.cpp:738:37: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
#  738 |                     if (it->count() > component)
#      |                         ~~~~~~~~~~~~^~~~~~~~~~~
#  736|                   case Exiv2::signedShort:
#  737|                   case Exiv2::signedLong:
#  738|->                     if (it->count() > component)
#  739|   #if EXIV2_TEST_VERSION(0,28,0)
#  740|                           return QVariant((int)it->toUint32(component));

Error: COMPILER_WARNING (CWE-195): [#def3]
libkexiv2-25.12.0/src/kexiv2exif.cpp:751:41: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
#  751 |                         if (it->count() <= component)
#      |                             ~~~~~~~~~~~~^~~~~~~~~~~~
#  749|                       if (rationalAsListOfInts)
#  750|                       {
#  751|->                         if (it->count() <= component)
#  752|                               return QVariant(QMetaType(QMetaType::QVariantList));
#  753|   

Error: COMPILER_WARNING (CWE-195): [#def4]
libkexiv2-25.12.0/src/kexiv2exif.cpp:762:41: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
#  762 |                         if (it->count() <= component)
#      |                             ~~~~~~~~~~~~^~~~~~~~~~~~
#  760|                       else
#  761|                       {
#  762|->                         if (it->count() <= component)
#  763|                               return QVariant(QMetaType(QMetaType::Double));
#  764|   

Error: COMPILER_WARNING (CWE-195): [#def5]
libkexiv2-25.12.0/src/kexiv2xmp.cpp: scope_hint: In member function ‘QString KExiv2Iface::KExiv2::getXmpTagStringLangAlt(const char*, const QString&, bool) const’
libkexiv2-25.12.0/src/kexiv2xmp.cpp:585:35: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
#  585 |                 for (int i = 0; i < it->count(); i++)
#      |                                 ~~^~~~~~~~~~~~~
#  583|               if (it->key() == xmpTagName && it->typeId() == Exiv2::langAlt)
#  584|               {
#  585|->                 for (int i = 0; i < it->count(); i++)
#  586|                   {
#  587|                       std::ostringstream os;

Error: COMPILER_WARNING (CWE-195): [#def6]
libkexiv2-25.12.0/src/kexiv2xmp.cpp: scope_hint: In member function ‘QStringList KExiv2Iface::KExiv2::getXmpTagStringSeq(const char*, bool) const’
libkexiv2-25.12.0/src/kexiv2xmp.cpp:707:35: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
#  707 |                 for (int i = 0; i < it->count(); i++)
#      |                                 ~~^~~~~~~~~~~~~
#  705|                   QStringList seq;
#  706|   
#  707|->                 for (int i = 0; i < it->count(); i++)
#  708|                   {
#  709|                       std::ostringstream os;

Error: COMPILER_WARNING (CWE-195): [#def7]
libkexiv2-25.12.0/src/kexiv2xmp.cpp: scope_hint: In member function ‘QStringList KExiv2Iface::KExiv2::getXmpTagStringBag(const char*, bool) const’
libkexiv2-25.12.0/src/kexiv2xmp.cpp:812:35: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
#  812 |                 for (int i = 0; i < it->count(); i++)
#      |                                 ~~^~~~~~~~~~~~~
#  810|                   QStringList bag;
#  811|   
#  812|->                 for (int i = 0; i < it->count(); i++)
#  813|                   {
#  814|                       std::ostringstream os;

Error: COMPILER_WARNING (CWE-195): [#def8]
libkexiv2-25.12.0/src/kexiv2xmp.cpp: scope_hint: In member function ‘QVariant KExiv2Iface::KExiv2::getXmpTagVariant(const char*, bool, bool) const’
libkexiv2-25.12.0/src/kexiv2xmp.cpp:1023:37: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
# 1023 |                     for (int i=0; i < it->count(); i++)
#      |                                   ~~^~~~~~~~~~~~~
# 1021|                       QStringList list;
# 1022|   
# 1023|->                     for (int i=0; i < it->count(); i++)
# 1024|                       {
# 1025|                           list << QString::fromUtf8(it->toString(i).c_str());

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
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-109.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-namelibkexiv2-25.12.0-1.fc44
store-results-to/tmp/tmp_6tpf5j2/libkexiv2-25.12.0-1.fc44.tar.xz
time-created2026-01-08 18:55:57
time-finished2026-01-08 18:57:42
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp_6tpf5j2/libkexiv2-25.12.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp_6tpf5j2/libkexiv2-25.12.0-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9