dxbjavid opened a new pull request, #3807:
URL: https://github.com/apache/avro/pull/3807

   decode_snappy in lang/c/src/codec.c takes the block length straight from the 
container file, where file_read_block_count only rejects negative values, so a 
snappy block of 1 to 3 bytes reaches it and the len-4 used for 
snappy_uncompressed_length, snappy_uncompress and the trailing CRC memcmp 
underflows to a huge size_t and reads out of bounds. The C++ reader in 
DataFile.cc already refuses len < 4 before the same subtraction, so add the 
matching check here.


-- 
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]

Reply via email to