67 bool isPotentialArchiveBomb()
const;
68 bool hasDataInternal()
const;
69 qsizetype readInternal(
char *data, qsizetype maxSize);
72 bool countInternal(
const QByteArray &data);
73 bool countInternal(
const QByteDataBuffer &buffer);
76 qint64 encodedBytesAvailable()
const;
78 qsizetype readZLib(
char *data, qsizetype maxSize);
79 qsizetype readBrotli(
char *data, qsizetype maxSize);
80 qsizetype readZstandard(
char *data, qsizetype maxSize);
82 QByteDataBuffer compressedDataBuffer;
83 QByteDataBuffer decompressedDataBuffer;
84 const qsizetype MaxDecompressedDataBufferSize = 10 * 1024 * 1024;
85 bool decoderHasData =
false;
87 bool countDecompressed =
false;
88 std::unique_ptr<QDecompressHelper> countHelper;
93 qint64 archiveBombCheckThreshold = 10 * 1024 * 1024;
94 qint64 totalUncompressedBytes = 0;
95 qint64 totalCompressedBytes = 0;
96 qint64 totalBytesRead = 0;
100 void *decoderPointer =
nullptr;