summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qstringbuilder.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2025-09-26 10:12:28 +0200
committerMarc Mutz <marc.mutz@qt.io>2025-09-26 18:23:44 +0200
commit79cefaba8bb124d74795c943edc817b04c4815eb (patch)
tree8490c4e9578c7e6e92b1494bcaf4925877bcfe3d /src/corelib/text/qstringbuilder.cpp
parent067883abcf39b806fd0d1f79190c6d45cd6dd34f (diff)
Mark QStringBuilder as security-critical
As an algorithm on QString / QByteArray, it's a priori security-critical. The situation may be different if QStringBuilder was implemented only using (public) QString / QByteArray API. Then one could argue that QString should firewall the component from security risks, but it's not, so QString doesn't. The implementation is mostly in the header, and while the implementation in the .cpp file is _currently_ trivial, looking a bit ahead, the goal should, as always, be to move more stuff from the header out-of-line, so proactively keep the .cpp file at critical, too. Task-number: QTBUG-135195 Pick-to: 6.10 6.8 Change-Id: I5c28f677e74632130d4b79159e8eafd9686c7821 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/corelib/text/qstringbuilder.cpp')
-rw-r--r--src/corelib/text/qstringbuilder.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/text/qstringbuilder.cpp b/src/corelib/text/qstringbuilder.cpp
index 738ce833ef2..b1505259b69 100644
--- a/src/corelib/text/qstringbuilder.cpp
+++ b/src/corelib/text/qstringbuilder.cpp
@@ -1,5 +1,6 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+// Qt-Security score:critical reason:data-parser
#include "qstringbuilder.h"
#include <private/qstringconverter_p.h>