poppler-24.08.0-1.fc42
List of Findings
Error: CPPCHECK_WARNING (CWE-227): [#def1]
poppler-24.08.0-build/poppler-24.08.0/glib/poppler-document.cc:2967: error[stlcstr]: Dangerous usage of c_str(). The value returned by c_str() is invalid after this call.
Error: COMPILER_WARNING (CWE-457): [#def2]
poppler-24.08.0-build/poppler-24.08.0/glib/poppler-page.cc: scope_hint: In function ‘poppler_page_get_text_layout_for_area’
poppler-24.08.0-build/poppler-24.08.0/glib/poppler-page.cc:2340:21: warning[-Wmaybe-uninitialized]: ‘x2’ may be used uninitialized
Error: COMPILER_WARNING (CWE-457): [#def3]
poppler-24.08.0-build/poppler-24.08.0/glib/poppler-page.cc:2340:25: warning[-Wmaybe-uninitialized]: ‘y2’ may be used uninitialized
Error: CPPCHECK_WARNING (CWE-457): [#def4]
poppler-24.08.0-build/poppler-24.08.0/glib/poppler-page.cc:2544: error[uninitvar]: Uninitialized variable: prev_word_i
Error: GCC_ANALYZER_WARNING (CWE-688): [#def5]
poppler-24.08.0-build/poppler-24.08.0/glib/tests/pdfdrawbb.c: scope_hint: In function ‘pdfaddsuffix’
poppler-24.08.0-build/poppler-24.08.0/glib/tests/pdfdrawbb.c:28:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘outfile’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
poppler-24.08.0-build/poppler-24.08.0/glib/tests/pdfdrawbb.c: scope_hint: In function ‘main’
poppler-24.08.0-build/poppler-24.08.0/glib/tests/pdfdrawbb.c:93:8: warning[-Wanalyzer-malloc-leak]: leak of ‘pdfaddsuffix(infilename, "bb")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
poppler-24.08.0-build/poppler-24.08.0/glib/tests/pdfdrawbb.c:98:8: warning[-Wanalyzer-malloc-leak]: leak of ‘pdfaddsuffix(infilename, "bb")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
poppler-24.08.0-build/poppler-24.08.0/glib/tests/pdfdrawbb.c:107:8: warning[-Wanalyzer-malloc-leak]: leak of ‘pdfaddsuffix(infilename, "bb")’
Error: CPPCHECK_WARNING (CWE-562): [#def9]
poppler-24.08.0-build/poppler-24.08.0/goo/gmem.h:192: error[returnDanglingLifetime]: Returning pointer to local variable 'r' that will be invalid when returning.
Error: CPPCHECK_WARNING (CWE-562): [#def10]
poppler-24.08.0-build/poppler-24.08.0/goo/gmem.h:200: error[returnDanglingLifetime]: Returning pointer to local variable 'r' that will be invalid when returning.
Error: CPPCHECK_WARNING (CWE-562): [#def11]
poppler-24.08.0-build/poppler-24.08.0/poppler/CachedFile.cc:208: error[danglingLifetime]: Non-local variable 'chunks' will use pointer to local variable 'loadChunks'.
Error: CPPCHECK_WARNING (CWE-562): [#def12]
poppler-24.08.0-build/poppler-24.08.0/poppler/CachedFile.cc:210: error[danglingLifetime]: Non-local variable 'chunks' will use pointer to local variable 'loadChunks'.
Error: CPPCHECK_WARNING (CWE-457): [#def13]
poppler-24.08.0-build/poppler-24.08.0/poppler/CachedFile.cc:266: warning[uninitvar]: Uninitialized variable: chunk
Error: CPPCHECK_WARNING (CWE-457): [#def14]
poppler-24.08.0-build/poppler-24.08.0/poppler/CairoOutputDev.cc:3410: warning[uninitvar]: Uninitialized variable: pix
Error: CPPCHECK_WARNING (CWE-457): [#def15]
poppler-24.08.0-build/poppler-24.08.0/poppler/Decrypt.cc:268: warning[uninitvar]: Uninitialized variable: tmpKey
Error: CPPCHECK_WARNING (CWE-457): [#def16]
poppler-24.08.0-build/poppler-24.08.0/poppler/Decrypt.cc:1774: error[uninitvar]: Uninitialized variable: totalLength
Error: CPPCHECK_WARNING (CWE-457): [#def17]
poppler-24.08.0-build/poppler-24.08.0/poppler/Function.cc:398: warning[uninitvar]: Uninitialized variable: in
Error: CPPCHECK_WARNING (CWE-457): [#def18]
poppler-24.08.0-build/poppler-24.08.0/poppler/Gfx.cc:1495: warning[uninitvar]: Uninitialized variable: &color
Error: CPPCHECK_WARNING (CWE-457): [#def19]
poppler-24.08.0-build/poppler-24.08.0/poppler/Gfx.cc:1512: warning[uninitvar]: Uninitialized variable: &color
Error: CPPCHECK_WARNING (CWE-457): [#def20]
poppler-24.08.0-build/poppler-24.08.0/poppler/Gfx.cc:4497: warning[uninitvar]: Uninitialized variable: &matteColor
Error: CPPCHECK_WARNING (CWE-457): [#def21]
poppler-24.08.0-build/poppler-24.08.0/poppler/GfxState.cc:2700: warning[uninitvar]: Uninitialized variable: &color2
Error: CPPCHECK_WARNING (CWE-457): [#def22]
poppler-24.08.0-build/poppler-24.08.0/poppler/GfxState.cc:2722: warning[uninitvar]: Uninitialized variable: &color2
Error: CPPCHECK_WARNING (CWE-457): [#def23]
poppler-24.08.0-build/poppler-24.08.0/poppler/GfxState.cc:2999: warning[uninitvar]: Uninitialized variable: x
Error: CPPCHECK_WARNING (CWE-457): [#def24]
poppler-24.08.0-build/poppler-24.08.0/poppler/GfxState.cc:3003: warning[uninitvar]: Uninitialized variable: &color2
Error: CPPCHECK_WARNING (CWE-457): [#def25]
poppler-24.08.0-build/poppler-24.08.0/poppler/GfxState.cc:3015: warning[uninitvar]: Uninitialized variable: x
Error: CPPCHECK_WARNING (CWE-457): [#def26]
poppler-24.08.0-build/poppler-24.08.0/poppler/GfxState.cc:3019: warning[uninitvar]: Uninitialized variable: &color2
Error: CPPCHECK_WARNING (CWE-457): [#def27]
poppler-24.08.0-build/poppler-24.08.0/poppler/GfxState.cc:3031: warning[uninitvar]: Uninitialized variable: x
Error: CPPCHECK_WARNING (CWE-457): [#def28]
poppler-24.08.0-build/poppler-24.08.0/poppler/GfxState.cc:3035: warning[uninitvar]: Uninitialized variable: &color2
Error: CPPCHECK_WARNING (CWE-457): [#def29]
poppler-24.08.0-build/poppler-24.08.0/poppler/GfxState.cc:5816: warning[uninitvar]: Uninitialized variable: &color
Error: CPPCHECK_WARNING (CWE-457): [#def30]
poppler-24.08.0-build/poppler-24.08.0/poppler/GfxState.cc:5834: warning[uninitvar]: Uninitialized variable: &color
Error: CPPCHECK_WARNING (CWE-457): [#def31]
poppler-24.08.0-build/poppler-24.08.0/poppler/GfxState.cc:6155: warning[uninitvar]: Uninitialized variable: &color
Error: CPPCHECK_WARNING (CWE-457): [#def32]
poppler-24.08.0-build/poppler-24.08.0/poppler/GfxState.cc:6173: warning[uninitvar]: Uninitialized variable: &color
Error: CPPCHECK_WARNING (CWE-457): [#def33]
poppler-24.08.0-build/poppler-24.08.0/poppler/Outline.cc:190: warning[uninitvar]: Uninitialized variables: nextRef.num, nextRef.gen
Error: CPPCHECK_WARNING (CWE-457): [#def34]
poppler-24.08.0-build/poppler-24.08.0/poppler/PSOutputDev.cc:1048: warning[uninitvar]: Uninitialized variable: x
Error: CPPCHECK_WARNING (CWE-457): [#def35]
poppler-24.08.0-build/poppler-24.08.0/poppler/UTF.cc:204: warning[uninitvar]: Uninitialized variable: *codep
Error: CPPCHECK_WARNING (CWE-562): [#def36]
poppler-24.08.0-build/poppler-24.08.0/poppler/UnicodeMap.cc:299: error[returnDanglingLifetime]: Returning pointer to local variable 'map' that will be invalid when returning.
Error: COMPILER_WARNING (CWE-477): [#def37]
poppler-24.08.0-build/poppler-24.08.0/qt5/src/poppler-annotation.cc: scope_hint: In constructor ‘Poppler::Annotation::Annotation(Poppler::AnnotationPrivate&, const QDomNode&)’
poppler-24.08.0-build/poppler-24.08.0/qt5/src/poppler-annotation.cc:1138:54: warning[-Wdeprecated-declarations]: ‘static QDomElement Poppler::AnnotationUtils::findChildElement(const QDomNode&, const QString&)’ is deprecated
poppler-24.08.0-build/poppler-24.08.0/qt5/src/poppler-annotation.cc:119:13: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def38]
poppler-24.08.0-build/poppler-24.08.0/qt5/src/poppler-annotation.cc:1278:62: warning[-Wdeprecated-declarations]: ‘static Poppler::Annotation* Poppler::AnnotationUtils::createAnnotation(const QDomElement&)’ is deprecated
poppler-24.08.0-build/poppler-24.08.0/qt5/src/poppler-annotation.cc:72:13: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def39]
poppler-24.08.0-build/poppler-24.08.0/qt5/src/poppler-annotation.cc: scope_hint: In member function ‘void Poppler::Annotation::storeBaseAnnotationProperties(QDomNode&, QDomDocument&) const’
poppler-24.08.0-build/poppler-24.08.0/qt5/src/poppler-annotation.cc:1410:41: warning[-Wdeprecated-declarations]: ‘static void Poppler::AnnotationUtils::storeAnnotation(const Poppler::Annotation*, QDomElement&, QDomDocument&)’ is deprecated
poppler-24.08.0-build/poppler-24.08.0/qt5/src/poppler-annotation.cc:110:6: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def40]
poppler-24.08.0-build/poppler-24.08.0/qt6/src/poppler-document.cc: scope_hint: In function ‘QDateTime Poppler::convertDate(const char*)’
poppler-24.08.0-build/poppler-24.08.0/qt6/src/poppler-document.cc:896:39: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
/usr/include/qt6/QtCore/QDateTime:1: included_from: Included from here.
poppler-24.08.0-build/poppler-24.08.0/qt6/src/poppler-annotation.h:36: included_from: Included from here.
poppler-24.08.0-build/poppler-24.08.0/qt6/src/poppler-qt6.h:57: included_from: Included from here.
poppler-24.08.0-build/poppler-24.08.0/qt6/src/poppler-document.cc:40: included_from: Included from here.
/usr/include/qt6/QtCore/qdatetime.h:359:5: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def41]
poppler-24.08.0-build/poppler-24.08.0/qt6/src/poppler-form.cc: scope_hint: In function ‘Poppler::CertificateInfoPrivate* Poppler::createCertificateInfoPrivate(const X509CertificateInfo*)’
poppler-24.08.0-build/poppler-24.08.0/qt6/src/poppler-form.cc:1034:65: warning[-Wdeprecated-declarations]: ‘static QDateTime QDateTime::fromSecsSinceEpoch(qint64, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead of time-spec, offset
/usr/include/qt6/QtCore/QDateTime:1: included_from: Included from here.
poppler-24.08.0-build/poppler-24.08.0/qt6/src/poppler-form.h:41: included_from: Included from here.
poppler-24.08.0-build/poppler-24.08.0/qt6/src/poppler-form.cc:37: included_from: Included from here.
/usr/include/qt6/QtCore/qdatetime.h:488:22: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def42]
poppler-24.08.0-build/poppler-24.08.0/qt6/src/poppler-form.cc:1035:63: warning[-Wdeprecated-declarations]: ‘static QDateTime QDateTime::fromSecsSinceEpoch(qint64, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead of time-spec, offset
/usr/include/qt6/QtCore/qdatetime.h:488:22: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def43]
/usr/include/qt6/QtTest/qtest.h:13: included_from: Included from here.
/usr/include/qt6/QtTest/QTest:1: included_from: Included from here.
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_attachments.cpp:1: included_from: Included from here.
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_attachments.cpp: scope_hint: In member function ‘void TestAttachments::checkAttach2()’
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_attachments.cpp:79:93: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
/usr/include/qt6/QtCore/qcborvalue.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/qcborarray.h:7: included_from: Included from here.
/usr/include/qt6/QtTest/qtesttostring.h:17: included_from: Included from here.
/usr/include/qt6/QtTest/qtestcase.h:8: included_from: Included from here.
/usr/include/qt6/QtCore/qdatetime.h:359:5: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def44]
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_attachments.cpp:80:90: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
/usr/include/qt6/QtCore/qdatetime.h:359:5: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def45]
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_attachments.cpp:86:93: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
/usr/include/qt6/QtCore/qdatetime.h:359:5: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def46]
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_attachments.cpp:87:90: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
/usr/include/qt6/QtCore/qdatetime.h:359:5: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def47]
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_attachments.cpp:93:94: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
/usr/include/qt6/QtCore/qdatetime.h:359:5: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def48]
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_attachments.cpp:94:91: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
/usr/include/qt6/QtCore/qdatetime.h:359:5: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def49]
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_attachments.cpp: scope_hint: In member function ‘void TestAttachments::checkAttach3()’
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_attachments.cpp:112:93: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
/usr/include/qt6/QtCore/qdatetime.h:359:5: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def50]
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_attachments.cpp:113:90: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
/usr/include/qt6/QtCore/qdatetime.h:359:5: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def51]
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_attachments.cpp: scope_hint: In member function ‘void TestAttachments::checkAttach4()’
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_attachments.cpp:131:93: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
/usr/include/qt6/QtCore/qdatetime.h:359:5: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def52]
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_attachments.cpp:132:90: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
/usr/include/qt6/QtCore/qdatetime.h:359:5: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def53]
/usr/include/qt6/QtTest/qtest.h:13: included_from: Included from here.
/usr/include/qt6/QtTest/QTest:1: included_from: Included from here.
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_dateConversion.cpp:1: included_from: Included from here.
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_dateConversion.cpp: scope_hint: In member function ‘void TestDateConv::checkDates()’
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_dateConversion.cpp:72:83: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
/usr/include/qt6/QtCore/qcborvalue.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/qcborarray.h:7: included_from: Included from here.
/usr/include/qt6/QtTest/qtesttostring.h:17: included_from: Included from here.
/usr/include/qt6/QtTest/qtestcase.h:8: included_from: Included from here.
/usr/include/qt6/QtCore/qdatetime.h:359:5: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def54]
/usr/include/qt6/QtTest/qtest.h:13: included_from: Included from here.
/usr/include/qt6/QtTest/QTest:1: included_from: Included from here.
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_metadata.cpp:1: included_from: Included from here.
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_metadata.cpp: scope_hint: In member function ‘void TestMetaData::checkDate()’
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_metadata.cpp:139:107: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
/usr/include/qt6/QtCore/qcborvalue.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/qcborarray.h:7: included_from: Included from here.
/usr/include/qt6/QtTest/qtesttostring.h:17: included_from: Included from here.
/usr/include/qt6/QtTest/qtestcase.h:8: included_from: Included from here.
/usr/include/qt6/QtCore/qdatetime.h:359:5: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def55]
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/check_metadata.cpp:140:112: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
/usr/include/qt6/QtCore/qdatetime.h:359:5: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def56]
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/poppler-forms.cpp: scope_hint: In function ‘int main(int, char**)’
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/poppler-forms.cpp:267:76: warning[-Wdeprecated-declarations]: ‘static QDateTime QDateTime::fromSecsSinceEpoch(qint64, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead of time-spec, offset
/usr/include/qt6/QtCore/QDateTime:1: included_from: Included from here.
poppler-24.08.0-build/poppler-24.08.0/qt6/tests/poppler-forms.cpp:2: included_from: Included from here.
/usr/include/qt6/QtCore/qdatetime.h:488:22: note: declared here
Error: COMPILER_WARNING (CWE-457): [#def57]
poppler-24.08.0-build/poppler-24.08.0/splash/SplashBitmap.cc: scope_hint: In member function ‘SplashBitmap::SplashBitmap(int, int, int, SplashColorMode, bool, bool, std::vector<GfxSeparationColorSpace*, std::allocator<GfxSeparationColorSpace*> > const*)’
poppler-24.08.0-build/poppler-24.08.0/splash/SplashBitmap.cc:107:9: warning[-Wmaybe-uninitialized]: ‘*this_41(D).rowSize’ may be used uninitialized
Error: CPPCHECK_WARNING (CWE-415): [#def58]
poppler-24.08.0-build/poppler-24.08.0/utils/pdftotext.cc:350: error[doubleFree]: Resource handle 'f' freed twice.
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-55.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | poppler-24.08.0-1.fc42 |
store-results-to | /tmp/tmpradg12kk/poppler-24.08.0-1.fc42.tar.xz |
time-created | 2024-11-13 02:36:52 |
time-finished | 2024-11-13 02:44:04 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpradg12kk/poppler-24.08.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpradg12kk/poppler-24.08.0-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |