Error: CPPCHECK_WARNING (CWE-476): [#def1] kirigami-addons-1.10.0/src/formcard/zxcvbn/zxcvbn.c:145: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p # 143| { # 144| ZxcMatch_t *p = MallocFn(ZxcMatch_t, 1); # 145|-> memset(p, 0, sizeof *p); # 146| return p; # 147| } Error: CPPCHECK_WARNING (CWE-682): [#def2] kirigami-addons-1.10.0/src/formcard/zxcvbn/zxcvbn.c:823: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer. # 821| Wrk.StartLoc = ROOT_NODE_LOC; # 822| Wrk.Begin = Start; # 823|-> DoDictMatch(Passwd + Start, 0, MaxLen, &Wrk, Result, &Extra, 0); # 824| } # 825| Error: CPPCHECK_WARNING (CWE-476): [#def3] kirigami-addons-1.10.0/src/formcard/zxcvbn/zxcvbn.c:1342: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: Nodes # 1340| /* Create the paths */ # 1341| Node_t *Nodes = MallocFn(Node_t, Len + 1); # 1342|-> memset(Nodes, 0, (Len + 1) * sizeof *Nodes); # 1343| i = Cardinality(Passwd, Len); # 1344| e = log((double)i); Error: GCC_ANALYZER_WARNING (CWE-688): [#def4] kirigami-addons-1.10.0/src/formcard/zxcvbn/zxcvbn.c:1342:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘Nodes’ where non-null expected kirigami-addons-1.10.0/src/formcard/zxcvbn/zxcvbn.c:1341:21: acquire_memory: this call could return NULL kirigami-addons-1.10.0/src/formcard/zxcvbn/zxcvbn.c:1342:5: danger: argument 1 (‘Nodes’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected # 1340| /* Create the paths */ # 1341| Node_t *Nodes = MallocFn(Node_t, Len + 1); # 1342|-> memset(Nodes, 0, (Len + 1) * sizeof *Nodes); # 1343| i = Cardinality(Passwd, Len); # 1344| e = log((double)i); Error: CPPCHECK_WARNING (CWE-476): [#def5] kirigami-addons-1.10.0/src/formcard/zxcvbn/zxcvbn.c:1350: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: Nodes # 1348| int MaxLen = Len - i; # 1349| /* Add all the 'paths' between groups of chars in the password, for current starting char */ # 1350|-> UserMatch(&(Nodes[i].Paths), UserDict, Passwd, i, MaxLen); # 1351| DictionaryMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); # 1352| DateMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); Error: CPPCHECK_WARNING (CWE-476): [#def6] kirigami-addons-1.10.0/src/formcard/zxcvbn/zxcvbn.c:1351: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: Nodes # 1349| /* Add all the 'paths' between groups of chars in the password, for current starting char */ # 1350| UserMatch(&(Nodes[i].Paths), UserDict, Passwd, i, MaxLen); # 1351|-> DictionaryMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); # 1352| DateMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); # 1353| SpatialMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); Error: CPPCHECK_WARNING (CWE-476): [#def7] kirigami-addons-1.10.0/src/formcard/zxcvbn/zxcvbn.c:1352: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: Nodes # 1350| UserMatch(&(Nodes[i].Paths), UserDict, Passwd, i, MaxLen); # 1351| DictionaryMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); # 1352|-> DateMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); # 1353| SpatialMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); # 1354| SequenceMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); Error: CPPCHECK_WARNING (CWE-476): [#def8] kirigami-addons-1.10.0/src/formcard/zxcvbn/zxcvbn.c:1353: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: Nodes # 1351| DictionaryMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); # 1352| DateMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); # 1353|-> SpatialMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); # 1354| SequenceMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); # 1355| RepeatMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); Error: CPPCHECK_WARNING (CWE-476): [#def9] kirigami-addons-1.10.0/src/formcard/zxcvbn/zxcvbn.c:1354: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: Nodes # 1352| DateMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); # 1353| SpatialMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); # 1354|-> SequenceMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); # 1355| RepeatMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); # 1356| Error: CPPCHECK_WARNING (CWE-476): [#def10] kirigami-addons-1.10.0/src/formcard/zxcvbn/zxcvbn.c:1355: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: Nodes # 1353| SpatialMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); # 1354| SequenceMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); # 1355|-> RepeatMatch(&(Nodes[i].Paths), Passwd, i, MaxLen); # 1356| # 1357| /* Initially set distance to nearly infinite */ Error: CPPCHECK_WARNING (CWE-476): [#def11] kirigami-addons-1.10.0/src/formcard/zxcvbn/zxcvbn.c:1358: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: Nodes # 1356| # 1357| /* Initially set distance to nearly infinite */ # 1358|-> Nodes[i].Dist = DBL_MAX; # 1359| } # 1360| Error: CPPCHECK_WARNING (CWE-476): [#def12] kirigami-addons-1.10.0/src/formcard/zxcvbn/zxcvbn.c:1364: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: RevPwd # 1362| RevPwd = MallocFn(uint8_t, Len + 1); # 1363| for (i = Len - 1, j = 0; i >= 0; --i, ++j) # 1364|-> RevPwd[j] = Pwd[i]; # 1365| RevPwd[j] = 0; # 1366| for (i = 0; i < Len; ++i) { Error: CPPCHECK_WARNING (CWE-476): [#def13] kirigami-addons-1.10.0/src/formcard/zxcvbn/zxcvbn.c:1365: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: RevPwd # 1363| for (i = Len - 1, j = 0; i >= 0; --i, ++j) # 1364| RevPwd[j] = Pwd[i]; # 1365|-> RevPwd[j] = 0; # 1366| for (i = 0; i < Len; ++i) { # 1367| ZxcMatch_t *Path = 0; Error: CPPCHECK_WARNING (CWE-476): [#def14] kirigami-addons-1.10.0/src/formcard/zxcvbn/zxcvbn.c:1377: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: Nodes # 1375| Path->Next = 0; # 1376| Path->Begin = Len - (Path->Begin + Path->Length); # 1377|-> AddResult(&(Nodes[Path->Begin].Paths), Path, MaxLen); # 1378| Path = Nxt; # 1379| } Error: CPPCHECK_WARNING (CWE-476): [#def15] kirigami-addons-1.10.0/src/formcard/zxcvbn/zxcvbn.c:1384: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: RevPwd # 1382| /* Add a set of brute force matches. Start by getting all the start points and all */ # 1383| /* points at character position after end of the matches. */ # 1384|-> memset(RevPwd, 0, Len + 1); # 1385| for (i = 0; i < Len; ++i) { # 1386| ZxcMatch_t *Path = Nodes[i].Paths; Error: COMPILER_WARNING (CWE-477): [#def16] kirigami-addons-1.10.0/src/treeview/treeviewplugin.cpp:7: included_from: Included from here. kirigami-addons-1.10.0/src/treeview/treeviewplugin.h: scope_hint: In member function ‘QString TreeViewPlugin::resolveFilePath(const QString&) const’ kirigami-addons-1.10.0/src/treeview/treeviewplugin.h:24:23: warning[-Wdeprecated-declarations]: ‘QUrl QQmlExtensionPlugin::baseUrl() const’ is deprecated: Provide a qmldir file to remove the need for calling baseUrl # 24 | return baseUrl().toLocalFile() + QLatin1Char('/') + path; # | ~~~~~~~^~ /usr/include/qt6/QtQml/QQmlExtensionPlugin:1: included_from: Included from here. kirigami-addons-1.10.0/src/treeview/treeviewplugin.h:9: included_from: Included from here. /usr/include/qt6/QtQml/qqmlextensionplugin.h:39:10: note: declared here # 39 | QUrl baseUrl() const; # | ^~~~~~~ # 22| QString resolveFilePath(const QString &path) const # 23| { # 24|-> return baseUrl().toLocalFile() + QLatin1Char('/') + path; # 25| } # 26| QString resolveFileUrl(const QString &filePath) const Error: COMPILER_WARNING (CWE-477): [#def17] kirigami-addons-1.10.0/src/treeview/treeviewplugin.h: scope_hint: In member function ‘QString TreeViewPlugin::resolveFileUrl(const QString&) const’ kirigami-addons-1.10.0/src/treeview/treeviewplugin.h:28:23: warning[-Wdeprecated-declarations]: ‘QUrl QQmlExtensionPlugin::baseUrl() const’ is deprecated: Provide a qmldir file to remove the need for calling baseUrl # 28 | return baseUrl().toString() + QLatin1Char('/') + filePath; # | ~~~~~~~^~ /usr/include/qt6/QtQml/qqmlextensionplugin.h:39:10: note: declared here # 39 | QUrl baseUrl() const; # | ^~~~~~~ # 26| QString resolveFileUrl(const QString &filePath) const # 27| { # 28|-> return baseUrl().toString() + QLatin1Char('/') + filePath; # 29| } # 30| QStringList m_stylesFallbackChain;
| 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-51.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-kirigami-addons-1.10.0-2.fc44 |
| store-results-to | /tmp/tmpvvpxuqtp/kf6-kirigami-addons-1.10.0-2.fc44.tar.xz |
| time-created | 2026-01-08 18:06:22 |
| time-finished | 2026-01-08 18:10:34 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpvvpxuqtp/kf6-kirigami-addons-1.10.0-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpvvpxuqtp/kf6-kirigami-addons-1.10.0-2.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |