diff options
Diffstat (limited to 'src/network/access/qdecompresshelper_p.h')
-rw-r--r-- | src/network/access/qdecompresshelper_p.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/network/access/qdecompresshelper_p.h b/src/network/access/qdecompresshelper_p.h index 33241e14f1..b0b60b2119 100644 --- a/src/network/access/qdecompresshelper_p.h +++ b/src/network/access/qdecompresshelper_p.h @@ -98,6 +98,8 @@ public: private: bool isPotentialArchiveBomb() const; + bool hasDataInternal() const; + qsizetype readInternal(char *data, qsizetype maxSize); bool countInternal(); bool countInternal(const QByteArray &data); @@ -111,16 +113,18 @@ private: qsizetype readZstandard(char *data, qsizetype maxSize); QByteDataBuffer compressedDataBuffer; + QByteDataBuffer decompressedDataBuffer; + const qsizetype MaxDecompressedDataBufferSize = 10 * 1024 * 1024; bool decoderHasData = false; bool countDecompressed = false; std::unique_ptr<QDecompressHelper> countHelper; - qint64 uncompressedBytes = 0; // Used for calculating the ratio qint64 archiveBombCheckThreshold = 10 * 1024 * 1024; qint64 totalUncompressedBytes = 0; qint64 totalCompressedBytes = 0; + qint64 totalBytesRead = 0; ContentEncoding contentEncoding = None; |