Doc: Warn about loading of untrusted .qm files

Pick-to: 6.8
Change-Id: I0cc99ef285335fc244ba33f08bf0e322c7597a75
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 3ab63875e551c67b9c6b7a0a8883a01666a557d7)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Kai Köhne 2025-04-09 12:44:15 +02:00 committed by Qt Cherry-pick Bot
parent 8bcc3f2ce5
commit a3c75cfc52

View File

@ -374,6 +374,16 @@ public:
QCoreApplication::installTranslator(). It will then be the first
translation to be searched for matching strings.
\section1 Security Considerations
Only install translation files from trusted sources.
Translation files are binary files that are generated from text-based
translation source files. The format of these binary files is strictly
defined by Qt and any manipulation of the data in the binary file may
crash the application when the file is loaded. Furthermore, even well-formed
translation files may contain misleading or malicious translations.
\sa QCoreApplication::installTranslator(), QCoreApplication::removeTranslator(),
QObject::tr(), QCoreApplication::translate(), {I18N Example},
{Hello tr() Example}, {Arrow Pad Example}, {Troll Print Example}