martin-g commented on code in PR #3807:
URL: https://github.com/apache/avro/pull/3807#discussion_r3448921308


##########
lang/c/src/codec.c:
##########
@@ -142,6 +142,11 @@ static int decode_snappy(avro_codec_t c, void * data, 
int64_t len)
         uint32_t crc;
         size_t outlen;
 
+        if (len < 4) {
+               avro_set_error("Snappy block is too small to contain a CRC32 
checksum");

Review Comment:
   The indentation is off. 



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