sddm-0.21.0-6.fc42
List of Findings
Error: SHELLCHECK_WARNING: [#def1]
/etc/sddm/wayland-session:16:5: warning[SC3044]: In POSIX sh, 'shopt' is undefined.
Error: SHELLCHECK_WARNING: [#def2]
/etc/sddm/wayland-session:17:12: warning[SC3040]: In POSIX sh, set option posix is undefined.
Error: SHELLCHECK_WARNING: [#def3]
/etc/sddm/wayland-session:21:5: warning[SC3010]: In POSIX sh, [[ ]] is undefined.
Error: SHELLCHECK_WARNING (CWE-88): [#def4]
/etc/sddm/wayland-session:49:6: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
Error: SHELLCHECK_WARNING: [#def5]
/usr/share/sddm/scripts/Xsession:12:5: warning[SC3044]: In POSIX sh, 'shopt' is undefined.
Error: SHELLCHECK_WARNING: [#def6]
/usr/share/sddm/scripts/Xsession:13:12: warning[SC3040]: In POSIX sh, set option posix is undefined.
Error: SHELLCHECK_WARNING: [#def7]
/usr/share/sddm/scripts/Xsession:17:5: warning[SC3010]: In POSIX sh, [[ ]] is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def8]
/usr/share/sddm/scripts/Xsession:59:1: warning[SC2034]: OPTIONFILE appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def9]
/usr/share/sddm/scripts/Xsession:62:1: warning[SC2034]: ALTUSERXSESSION appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-398): [#def10]
/usr/share/sddm/scripts/Xsession:65:14: error[SC2045]: Iterating over ls output is fragile. Use globs.
Error: SHELLCHECK_WARNING (CWE-477): [#def11]
/usr/share/sddm/scripts/Xsession:68:28: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-88): [#def12]
/usr/share/sddm/scripts/Xsession:93:10: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
Error: SHELLCHECK_WARNING: [#def13]
/usr/share/sddm/scripts/wayland-session:16:5: warning[SC3044]: In POSIX sh, 'shopt' is undefined.
Error: SHELLCHECK_WARNING: [#def14]
/usr/share/sddm/scripts/wayland-session:17:12: warning[SC3040]: In POSIX sh, set option posix is undefined.
Error: SHELLCHECK_WARNING: [#def15]
/usr/share/sddm/scripts/wayland-session:21:5: warning[SC3010]: In POSIX sh, [[ ]] is undefined.
Error: SHELLCHECK_WARNING (CWE-88): [#def16]
/usr/share/sddm/scripts/wayland-session:49:6: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
Error: COMPILER_WARNING (CWE-477): [#def17]
sddm-0.21.0-build/sddm-0.21.0/src/helper/HelperApp.h:27: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/redhat-linux-build/src/helper/sddm-helper_autogen/EWIEGA46WW/moc_HelperApp.cpp:9: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/redhat-linux-build/src/helper/sddm-helper_autogen/mocs_compilation.cpp:7: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/auth/AuthMessages.h: scope_hint: In function ‘QDataStream& SDDM::operator<<(QDataStream&, const Request&)’
sddm-0.21.0-build/sddm-0.21.0/src/auth/AuthMessages.h:191:39: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = const QList<SDDM::Prompt>; typename std::add_const<_Tp>::type = const QList<SDDM::Prompt>]’ is deprecated: Use std::as_const() instead.
/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/qobjectdefs.h:12: included_from: Included from here.
/usr/include/qt6/QtCore/qobject.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/QObject:1: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/auth/AuthRequest.h:24: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/auth/Auth.h:24: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/redhat-linux-build/src/helper/sddm-helper_autogen/FQWVTXS267/moc_Auth.cpp:9: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/redhat-linux-build/src/helper/sddm-helper_autogen/mocs_compilation.cpp:2: included_from: Included from here.
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def18]
sddm-0.21.0-build/sddm-0.21.0/src/auth/AuthRequest.cpp: scope_hint: In member function ‘void SDDM::AuthRequest::Private::responseChanged()’
sddm-0.21.0-build/sddm-0.21.0/src/auth/AuthRequest.cpp:41:45: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<SDDM::AuthPrompt*>; typename std::add_const<_Tp>::type = const QList<SDDM::AuthPrompt*>]’ is deprecated: Use std::as_const() instead.
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def19]
sddm-0.21.0-build/sddm-0.21.0/src/auth/AuthRequest.cpp: scope_hint: In member function ‘void SDDM::AuthRequest::setRequest(const SDDM::Request*)’
sddm-0.21.0-build/sddm-0.21.0/src/auth/AuthRequest.cpp:57:44: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = const QList<SDDM::Prompt>; typename std::add_const<_Tp>::type = const QList<SDDM::Prompt>]’ is deprecated: Use std::as_const() instead.
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def20]
sddm-0.21.0-build/sddm-0.21.0/src/auth/AuthRequest.cpp: scope_hint: In member function ‘SDDM::Request SDDM::AuthRequest::request() const’
sddm-0.21.0-build/sddm-0.21.0/src/auth/AuthRequest.cpp:99:46: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<SDDM::AuthPrompt*>; typename std::add_const<_Tp>::type = const QList<SDDM::AuthPrompt*>]’ is deprecated: Use std::as_const() instead.
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def21]
sddm-0.21.0-build/sddm-0.21.0/src/common/ConfigReader.cpp: scope_hint: In member function ‘void SDDM::ConfigBase::load()’
sddm-0.21.0-build/sddm-0.21.0/src/common/ConfigReader.cpp:185:48: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<QString>; typename std::add_const<_Tp>::type = const QList<QString>]’ is deprecated: Use std::as_const() instead.
/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/qchar.h:7: included_from: Included from here.
/usr/include/qt6/QtCore/qstring.h:14: included_from: Included from here.
/usr/include/qt6/QtCore/QString:1: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/common/ConfigReader.h:24: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/common/ConfigReader.cpp:21: included_from: Included from here.
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def22]
sddm-0.21.0-build/sddm-0.21.0/src/common/ConfigReader.cpp: scope_hint: In member function ‘void SDDM::ConfigBase::save(const SDDM::ConfigSection*, const SDDM::ConfigEntryBase*)’
sddm-0.21.0-build/sddm-0.21.0/src/common/ConfigReader.cpp:248:57: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = const QMap<QString, SDDM::ConfigEntryBase*>; typename std::add_const<_Tp>::type = const QMap<QString, SDDM::ConfigEntryBase*>]’ is deprecated: Use std::as_const() instead.
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def23]
sddm-0.21.0-build/sddm-0.21.0/src/common/ConfigReader.cpp:254:51: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QMap<QString, SDDM::ConfigSection*>; typename std::add_const<_Tp>::type = const QMap<QString, SDDM::ConfigSection*>]’ is deprecated: Use std::as_const() instead.
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def24]
sddm-0.21.0-build/sddm-0.21.0/src/common/ConfigReader.cpp:255:57: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = const QMap<QString, SDDM::ConfigEntryBase*>; typename std::add_const<_Tp>::type = const QMap<QString, SDDM::ConfigEntryBase*>]’ is deprecated: Use std::as_const() instead.
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def25]
sddm-0.21.0-build/sddm-0.21.0/src/common/Session.cpp: scope_hint: In member function ‘void SDDM::Session::setTo(Type, const QString&)’
sddm-0.21.0-build/sddm-0.21.0/src/common/Session.cpp:209:40: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<QString>; typename std::add_const<_Tp>::type = const QList<QString>]’ is deprecated: Use std::as_const() instead.
/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/qiodevice.h:7: included_from: Included from here.
/usr/include/qt6/QtCore/qfiledevice.h:7: included_from: Included from here.
/usr/include/qt6/QtCore/qfile.h:8: included_from: Included from here.
/usr/include/qt6/QtCore/QFile:1: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/common/Session.cpp:21: included_from: Included from here.
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def26]
sddm-0.21.0-build/sddm-0.21.0/src/common/Session.cpp: scope_hint: In lambda function
sddm-0.21.0-build/sddm-0.21.0/src/common/Session.cpp:237:43: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<QString>; typename std::add_const<_Tp>::type = const QList<QString>]’ is deprecated: Use std::as_const() instead.
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def27]
sddm-0.21.0-build/sddm-0.21.0/src/greeter/GreeterApp.cpp: scope_hint: In member function ‘void SDDM::GreeterApp::activatePrimary()’
sddm-0.21.0-build/sddm-0.21.0/src/greeter/GreeterApp.cpp:291:41: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<QQuickView*>; typename std::add_const<_Tp>::type = const QList<QQuickView*>]’ is deprecated: Use std::as_const() instead.
/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/qobjectdefs.h:12: included_from: Included from here.
/usr/include/qt6/QtCore/qobject.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/QObject:1: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/greeter/GreeterApp.h:24: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/greeter/GreeterApp.cpp:21: included_from: Included from here.
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def28]
sddm-0.21.0-build/sddm-0.21.0/src/greeter/GreeterApp.cpp: scope_hint: In function ‘int main(int, char**)’
sddm-0.21.0-build/sddm-0.21.0/src/greeter/GreeterApp.cpp:337:43: warning[-Wdeprecated-declarations]: ‘Qt::AA_EnableHighDpiScaling’ is deprecated: High-DPI scaling is always enabled. This attribute no longer has any effect.
/usr/include/qt6/QtCore/qnamespace.h:451:9: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def29]
sddm-0.21.0-build/sddm-0.21.0/src/greeter/SessionModel.cpp: scope_hint: In member function ‘void SDDM::SessionModel::populate(SDDM::Session::Type, const QStringList&)’
sddm-0.21.0-build/sddm-0.21.0/src/greeter/SessionModel.cpp:138:38: warning[-Wdeprecated-declarations]: ‘constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<QString>; typename std::add_const<_Tp>::type = const QList<QString>]’ is deprecated: Use std::as_const() instead.
/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/qscopedpointer.h:7: included_from: Included from here.
/usr/include/qt6/QtCore/qdatastream.h:7: included_from: Included from here.
/usr/include/qt6/QtCore/QDataStream:1: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/common/Session.h:23: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/greeter/SessionModel.h:24: included_from: Included from here.
sddm-0.21.0-build/sddm-0.21.0/src/greeter/SessionModel.cpp:21: included_from: Included from here.
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
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-183.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | sddm-0.21.0-6.fc42 |
store-results-to | /tmp/tmpleyzcsqx/sddm-0.21.0-6.fc42.tar.xz |
time-created | 2024-11-13 03:14:06 |
time-finished | 2024-11-13 03:16:59 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpleyzcsqx/sddm-0.21.0-6.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpleyzcsqx/sddm-0.21.0-6.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |