summaryrefslogtreecommitdiffstats
path: root/src/network/doc/src/qt6-changes.qdoc
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2022-03-31 18:48:42 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2022-04-27 18:31:01 +0200
commitd642c16fe745e156a93129fbb3750784b361ee39 (patch)
tree62665c96fad5d30cf51e970b5e0e06f36066f8a0 /src/network/doc/src/qt6-changes.qdoc
parent45b09215e51b84fd6d01e5d8a8cb8555c9099f0e (diff)
QNetworkReply: update decompress error message and handling
The error message was quite vague since it would then not require any additional translations. However, in hindsight this was a mistake since now developers just thought their downloads were being corrupted. Pick-to: 6.2 6.3 Fixes: QTBUG-101942 Change-Id: Ie9af42510ca027d15248e5bcf21e836e709898d9 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/network/doc/src/qt6-changes.qdoc')
-rw-r--r--src/network/doc/src/qt6-changes.qdoc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/network/doc/src/qt6-changes.qdoc b/src/network/doc/src/qt6-changes.qdoc
index f760466f42..2de6c0faa6 100644
--- a/src/network/doc/src/qt6-changes.qdoc
+++ b/src/network/doc/src/qt6-changes.qdoc
@@ -196,4 +196,14 @@
\code
request.setAttribute(QNetworkRequest::Http2AllowedAttribute, false);
\endcode
+
+ \section2 QNetworkAccessManager now guards against archive bombs
+
+ Starting with Qt 6.2 QNetworkAccessManager will guard against compressed
+ files that decompress to files which are much larger than their compressed
+ form by erroring out the reply if the decompression ratio exceeds a certain
+ threshold.
+ This check is only applied to files larger than a certain size, which can be
+ customized (or disabled by passing -1) by calling
+ \l{QNetworkRequest::setDecompressedSafetyCheckThreshold()}.
*/