Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Fix use after free in KoFontGlyphModel
Luna Lovecraft3f968be4abfa
diff --git a/libs/flake/text/KoFontGlyphModel.cpp b/libs/flake/text/KoFontGlyphModel.cppindex bb934f0d79..3384dabac6 100644--- a/libs/flake/text/KoFontGlyphModel.cpp+++ b/libs/flake/text/KoFontGlyphModel.cpp@@ -131,7 +131,7 @@ struct KoFontGlyphModel::Private {QVector<hb_language_t> localeTags;Q_FOREACH(const QString locale, locales) {- QLatin1String l(locale.split("_").join("-").toLatin1());+ QByteArray l(locale.split("_").join("-").toLatin1());localeTags.append(hb_language_from_string(l.data(), l.size()));}