qt5-qtsvg-5.15.14-1.fc41
List of Defects
Error: CLANG_WARNING: [#def1]
qt5-qtsvg-5.15.14-build/qtsvg-everywhere-src-5.15.14/examples/svg/embedded/fluidlauncher/pictureflow.cpp:763:7: warning[deadcode.DeadStores]: Value stored to 'alpha' is never read
# 761| c1 = rs.left();
# 762|
# 763|-> alpha = (step > 0) ? 256-fade/2 : 256;
# 764| }
# 765| for(int index = 0; index < nright; index++)
Error: CLANG_WARNING: [#def2]
qt5-qtsvg-5.15.14-build/qtsvg-everywhere-src-5.15.14/examples/svg/embedded/fluidlauncher/pictureflow.cpp:1314:7: warning[deadcode.DeadStores]: Value stored to 'incr' is never read
# 1312|
# 1313| if (incr > d->pixelsToMovePerSlide*2) {
# 1314|-> incr = d->pixelsToMovePerSlide*2;
# 1315| //qDebug() << "Limiting incr to " << incr;
# 1316| }
Error: CLANG_WARNING: [#def3]
qt5-qtsvg-5.15.14-build/qtsvg-everywhere-src-5.15.14/examples/svg/embedded/weatherinfo/weatherinfo.cpp:361:25: warning[cplusplus.NewDelete]: Use of memory after it is freed
# 359| // save data if new day starts
# 360| if (period == "0") {
# 361|-> saveDayItem(dayItem, lowT, highT, symbol);
# 362| createNewDay(xml);
# 363| saved = true;
Error: CLANG_WARNING: [#def4]
qt5-qtsvg-5.15.14-build/qtsvg-everywhere-src-5.15.14/src/svg/qsvghandler.cpp:124:40: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 122| static inline int qsvg_hex2int(const char *s, bool *ok = nullptr)
# 123| {
# 124|-> return (qsvg_h2i(s[0], ok) * 16) | qsvg_h2i(s[1], ok);
# 125| }
# 126|
Error: CLANG_WARNING: [#def5]
qt5-qtsvg-5.15.14-build/qtsvg-everywhere-src-5.15.14/src/svg/qsvghandler.cpp:155:13: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 153| } else if (len == 3) {
# 154| r = qsvg_hex2int(name[0], &ok);
# 155|-> g = qsvg_hex2int(name[1], &ok);
# 156| b = qsvg_hex2int(name[2], &ok);
# 157| } else {
Error: CLANG_WARNING: [#def6]
qt5-qtsvg-5.15.14-build/qtsvg-everywhere-src-5.15.14/src/svg/qsvghandler.cpp:741:27: warning[core.NullDereference]: Array access (from variable 'pattern') results in a null pointer dereference
# 739| *str == QLatin1Char('.')) {
# 740|
# 741|-> if (patternLen && pattern[points.size() % patternLen] == 'f') {
# 742| // flag expected, may only be 0 or 1
# 743| if (*str != QLatin1Char('0') && *str != QLatin1Char('1'))
Error: CLANG_WARNING: [#def7]
qt5-qtsvg-5.15.14-build/qtsvg-everywhere-src-5.15.14/src/svg/qsvghandler.cpp:2487:42: warning[deadcode.DeadStores]: Although the value stored to 's' is used in the enclosing expression, the value is never actually read from 's'
# 2485| vals.append(0.0);
# 2486| vals.append(0.0);
# 2487|-> parseNumberTriplet(vals, s = byStr.constData());
# 2488| } else {
# 2489| // To-animation not defined.
Error: CLANG_WARNING: [#def8]
qt5-qtsvg-5.15.14-build/qtsvg-everywhere-src-5.15.14/src/svg/qsvghandler.cpp:2495:42: warning[deadcode.DeadStores]: Although the value stored to 's' is used in the enclosing expression, the value is never actually read from 's'
# 2493| if (!toStr.isEmpty()) {
# 2494| // From-to-animation.
# 2495|-> parseNumberTriplet(vals, s = fromStr.constData());
# 2496| parseNumberTriplet(vals, s = toStr.constData());
# 2497| } else if (!byStr.isEmpty()) {
Error: CLANG_WARNING: [#def9]
qt5-qtsvg-5.15.14-build/qtsvg-everywhere-src-5.15.14/src/svg/qsvghandler.cpp:2496:42: warning[deadcode.DeadStores]: Although the value stored to 's' is used in the enclosing expression, the value is never actually read from 's'
# 2494| // From-to-animation.
# 2495| parseNumberTriplet(vals, s = fromStr.constData());
# 2496|-> parseNumberTriplet(vals, s = toStr.constData());
# 2497| } else if (!byStr.isEmpty()) {
# 2498| // From-by-animation.
Error: CLANG_WARNING: [#def10]
qt5-qtsvg-5.15.14-build/qtsvg-everywhere-src-5.15.14/src/svg/qsvghandler.cpp:2499:42: warning[deadcode.DeadStores]: Although the value stored to 's' is used in the enclosing expression, the value is never actually read from 's'
# 2497| } else if (!byStr.isEmpty()) {
# 2498| // From-by-animation.
# 2499|-> parseNumberTriplet(vals, s = fromStr.constData());
# 2500| parseNumberTriplet(vals, s = byStr.constData());
# 2501| for (int i = vals.size() - 3; i < vals.size(); ++i)
Error: CLANG_WARNING: [#def11]
qt5-qtsvg-5.15.14-build/qtsvg-everywhere-src-5.15.14/src/svg/qsvghandler.cpp:2500:42: warning[deadcode.DeadStores]: Although the value stored to 's' is used in the enclosing expression, the value is never actually read from 's'
# 2498| // From-by-animation.
# 2499| parseNumberTriplet(vals, s = fromStr.constData());
# 2500|-> parseNumberTriplet(vals, s = byStr.constData());
# 2501| for (int i = vals.size() - 3; i < vals.size(); ++i)
# 2502| vals[i] += vals[i - 3];
Error: CLANG_WARNING: [#def12]
qt5-qtsvg-5.15.14-build/qtsvg-everywhere-src-5.15.14/src/svg/qsvghandler.cpp:2877:35: warning[core.CallAndMessage]: Called C++ object pointer is null
# 2875| QGradient *grad = gradProp->qgradient();
# 2876| if (!link.isEmpty()) {
# 2877|-> QSvgStyleProperty *prop = node->styleProperty(link);
# 2878| //qDebug()<<"inherited "<<prop<<" ("<<link<<")";
# 2879| if (prop && prop->type() == QSvgStyleProperty::GRADIENT) {
Error: CLANG_WARNING: [#def13]
qt5-qtsvg-5.15.14-build/qtsvg-everywhere-src-5.15.14/src/svg/qsvgtinydocument.cpp:385:5: warning[cplusplus.NewDelete]: Use of memory after it is freed
# 383| QSvgFont * QSvgTinyDocument::svgFont(const QString &family) const
# 384| {
# 385|-> return m_fonts[family];
# 386| }
# 387|
Error: CLANG_WARNING: [#def14]
qt5-qtsvg-5.15.14-build/qtsvg-everywhere-src-5.15.14/src/svg/qsvgtinydocument.cpp:408:5: warning[cplusplus.NewDelete]: Use of memory after it is freed
# 406| QSvgFillStyleProperty *QSvgTinyDocument::namedStyle(const QString &id) const
# 407| {
# 408|-> return m_namedStyles.value(id);
# 409| }
# 410|
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-25.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | qt5-qtsvg-5.15.14-1.fc41 |
store-results-to | /tmp/tmp9e144szs/qt5-qtsvg-5.15.14-1.fc41.tar.xz |
time-created | 2024-07-03 17:41:17 |
time-finished | 2024-07-03 17:43:32 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp9e144szs/qt5-qtsvg-5.15.14-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp9e144szs/qt5-qtsvg-5.15.14-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |