iemejia commented on code in PR #3854:
URL: https://github.com/apache/avro/pull/3854#discussion_r3567621029
##########
lang/c++/impl/DataFile.cc:
##########
@@ -627,12 +679,30 @@ void DataFileReaderBase::readDataBlock() {
const uint8_t *data;
size_t len;
+ const size_t maxLength = maxDecompressLength();
Review Comment:
Fixed — the deflate path now clamps the working maxLength to
`std::numeric_limits<uLong>::max()`, so a larger AVRO_MAX_DECOMPRESS_LENGTH
can't cause the total_out-based buffer arithmetic to wrap where uLong is 32-bit.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]