pitrou commented on code in PR #43413:
URL: https://github.com/apache/arrow/pull/43413#discussion_r1722943390


##########
cpp/src/parquet/encryption/encryption_internal.cc:
##########
@@ -665,9 +696,15 @@ int AesDecryptor::AesDecryptorImpl::CtrDecrypt(span<const 
uint8_t> ciphertext,
   }
 
   // Decryption
+  int32_t decryption_length = ciphertext_len - length_buffer_length_ - 
kNonceLength;
+  if (decryption_length > std::numeric_limits<int>::max()) {

Review Comment:
   (same 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