Debugger: Avoid reserving huge strings

Fixes: QTCREATORBUG-26416
Change-Id: I3728a98f0d16f43817d46e5404bd0b65bfd1b9c0
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2023-02-24 10:24:22 +01:00
parent fb9e0397e6
commit 5b0a177cdf

View File

@@ -200,7 +200,7 @@ QString DebuggerOutputParser::readCString()
++from; // Skip initial quote. ++from; // Skip initial quote.
QString result; QString result;
result.reserve(to - from); result.reserve(30);
while (from < to) { while (from < to) {
if (*from == '"') { if (*from == '"') {
++from; ++from;