qt6-bb10/tests/auto/corelib/kernel/qcoreapplication
Oswald Buddenhagen c365fa49d8 fix out-of-bounds access on trailing percent sign in tr() argument
tr() recognizes %n and %Ln. it offers no way to escape lone percent
signs, which implies that they must be interpreted verbatim, which is
what the code actually does. except that it would run off the end if the
% appeared at the end of the string.

Fixes: QTBUG-57171
Done-with: Mateusz Starzycki <mstarzycki@gmail.com>
Change-Id: Icf81925c482be1ea66ec8daafb3e92ad17ea7fab
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
2019-01-14 08:52:15 +00:00
..
.gitignore Moving relevant tests to corelib/kernel 2011-09-01 12:42:14 +02:00
Info.plist Provide sensible defaults for QCoreApplication::applicationVersion 2017-01-12 02:13:21 +00:00
qcoreapplication.pro qmake: Allow non-bundle apps and libs to have an Info.plist 2017-09-29 10:08:08 +00:00
tst_qcoreapplication.cpp fix out-of-bounds access on trailing percent sign in tr() argument 2019-01-14 08:52:15 +00:00
tst_qcoreapplication.h fix out-of-bounds access on trailing percent sign in tr() argument 2019-01-14 08:52:15 +00:00