Warning, /graphics/krita/3rdparty/ext_frameworks/0002-ki18n-Ensure-langenv-string-is-null-terminated.patch is written in an unsupported language. File is not indexed.
0001 From 56f5d2882e81aea82a473557d46b5cb15ee659a6 Mon Sep 17 00:00:00 2001 0002 From: Alvin Wong <alvin@alvinhc.com> 0003 Date: Sat, 30 Oct 2021 22:04:02 +0800 0004 Subject: [PATCH] Ensure `langenv` string is null-terminated 0005 0006 See: https://bugs.kde.org/show_bug.cgi?id=444614 0007 --- 0008 src/kcatalog.cpp | 1 + 0009 1 file changed, 1 insertion(+) 0010 0011 diff --git a/src/kcatalog.cpp b/src/kcatalog.cpp 0012 index 0143c13..f9542b4 100644 0013 --- a/src/kcatalog.cpp 0014 +++ b/src/kcatalog.cpp 0015 @@ -116,6 +116,7 @@ KCatalog::KCatalog(const QByteArray &domain, const QString &language_) 0016 langenv = new char[langenvMaxlen]; 0017 QByteArray baselang = qgetenv("LANGUAGE"); 0018 qsnprintf(langenv, langenvMaxlen, "LANGUAGE=%s", baselang.constData()); 0019 + langenv[langenvMaxlen - 1] = '\0'; 0020 putenv(langenv); 0021 } 0022 } 0023 -- 0024 2.33.0 0025