libkexiv2-24.08.3-1.fc42

List of Findings

Error: COMPILER_WARNING (CWE-477): [#def1]
libkexiv2-24.08.3-build/libkexiv2-24.08.3/src/kexiv2.cpp: scope_hint: In static member function ‘static bool KExiv2Iface::KExiv2::initializeExiv2()’
libkexiv2-24.08.3-build/libkexiv2-24.08.3/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-24.08.3-build/libkexiv2-24.08.3/src/kexiv2_p.h:44: included_from: Included from here.
libkexiv2-24.08.3-build/libkexiv2-24.08.3/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-24.08.3-build/libkexiv2-24.08.3/src/kexiv2exif.cpp: scope_hint: In member function ‘QVariant KExiv2Iface::KExiv2::getExifTagVariant(const char*, bool, bool, int) const’
libkexiv2-24.08.3-build/libkexiv2-24.08.3/src/kexiv2exif.cpp:746:37: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
#  746 |                     if (it->count() > component)
#      |                         ~~~~~~~~~~~~^~~~~~~~~~~
#  744|                   case Exiv2::signedShort:
#  745|                   case Exiv2::signedLong:
#  746|->                     if (it->count() > component)
#  747|   #if EXIV2_TEST_VERSION(0,28,0)
#  748|                           return QVariant((int)it->toUint32(component));

Error: COMPILER_WARNING (CWE-195): [#def3]
libkexiv2-24.08.3-build/libkexiv2-24.08.3/src/kexiv2exif.cpp:763:41: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
#  763 |                         if (it->count() <= component)
#      |                             ~~~~~~~~~~~~^~~~~~~~~~~~
#  761|                       if (rationalAsListOfInts)
#  762|                       {
#  763|->                         if (it->count() <= component)
#  764|   #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#  765|                               return QVariant(QMetaType(QMetaType::QVariantList));

Error: COMPILER_WARNING (CWE-195): [#def4]
libkexiv2-24.08.3-build/libkexiv2-24.08.3/src/kexiv2exif.cpp:778:41: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
#  778 |                         if (it->count() <= component)
#      |                             ~~~~~~~~~~~~^~~~~~~~~~~~
#  776|                       else
#  777|                       {
#  778|->                         if (it->count() <= component)
#  779|   #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#  780|                               return QVariant(QMetaType(QMetaType::Double));

Error: COMPILER_WARNING (CWE-195): [#def5]
libkexiv2-24.08.3-build/libkexiv2-24.08.3/src/kexiv2xmp.cpp: scope_hint: In member function ‘QString KExiv2Iface::KExiv2::getXmpTagStringLangAlt(const char*, const QString&, bool) const’
libkexiv2-24.08.3-build/libkexiv2-24.08.3/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-24.08.3-build/libkexiv2-24.08.3/src/kexiv2xmp.cpp: scope_hint: In member function ‘QStringList KExiv2Iface::KExiv2::getXmpTagStringSeq(const char*, bool) const’
libkexiv2-24.08.3-build/libkexiv2-24.08.3/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-24.08.3-build/libkexiv2-24.08.3/src/kexiv2xmp.cpp: scope_hint: In member function ‘QStringList KExiv2Iface::KExiv2::getXmpTagStringBag(const char*, bool) const’
libkexiv2-24.08.3-build/libkexiv2-24.08.3/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-24.08.3-build/libkexiv2-24.08.3/src/kexiv2xmp.cpp: scope_hint: In member function ‘QVariant KExiv2Iface::KExiv2::getXmpTagVariant(const char*, bool, bool) const’
libkexiv2-24.08.3-build/libkexiv2-24.08.3/src/kexiv2xmp.cpp:1027:37: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
# 1027 |                     for (int i=0; i < it->count(); i++)
#      |                                   ~~^~~~~~~~~~~~~
# 1025|                       QStringList list;
# 1026|   
# 1027|->                     for (int i=0; i < it->count(); i++)
# 1028|                       {
# 1029|                           list << QString::fromUtf8(it->toString(i).c_str());

Error: COMPILER_WARNING (CWE-477): [#def9]
libkexiv2-24.08.3-build/libkexiv2-24.08.3/src/rotationmatrix.cpp: scope_hint: In member function ‘KExiv2Iface::RotationMatrix& KExiv2Iface::RotationMatrix::operator*=(QList<TransformationAction>)’
libkexiv2-24.08.3-build/libkexiv2-24.08.3/src/rotationmatrix.cpp:175:55: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<KExiv2Iface::RotationMatrix::TransformationAction>; typename std::add_const<_Tp>::type = const QList<KExiv2Iface::RotationMatrix::TransformationAction>]’ is deprecated: Use std::as_const() instead.
#  175 |     for (const TransformationAction& action : qAsConst(actions))
#      |                                               ~~~~~~~~^~~~~~~~~
/usr/include/qt6/QtCore/qforeach.h:11: included_from: Included from here.
/usr/include/qt6/QtCore/qglobal.h:57: included_from: Included from here.
/usr/include/qt6/QtCore/qnamespace.h:12: included_from: Included from here.
/usr/include/qt6/QtCore/qbytearray.h:9: included_from: Included from here.
/usr/include/qt6/QtCore/QByteArray:1: included_from: Included from here.
libkexiv2-24.08.3-build/libkexiv2-24.08.3/src/kexiv2.h:17: included_from: Included from here.
libkexiv2-24.08.3-build/libkexiv2-24.08.3/src/rotationmatrix.h:14: included_from: Included from here.
libkexiv2-24.08.3-build/libkexiv2-24.08.3/src/rotationmatrix.cpp:10: included_from: Included from here.
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
#   36 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
#      |                                             ^~~~~~~~
#  173|   RotationMatrix& RotationMatrix::operator*=(QList<TransformationAction> actions)
#  174|   {
#  175|->     for (const TransformationAction& action : qAsConst(actions))
#  176|       {
#  177|           *this *= Matrix::matrix(action);

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
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-158.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibkexiv2-24.08.3-1.fc42
store-results-to/tmp/tmpdinxyhkq/libkexiv2-24.08.3-1.fc42.tar.xz
time-created2024-11-13 01:34:58
time-finished2024-11-13 01:36:48
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpdinxyhkq/libkexiv2-24.08.3-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpdinxyhkq/libkexiv2-24.08.3-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9