pitrou commented on code in PR #3148: URL: https://github.com/apache/parquet-java/pull/3148#discussion_r1948627944
########## parquet-hadoop/src/main/java/org/apache/parquet/crypto/AesCtrDecryptor.java: ########## @@ -55,7 +55,11 @@ public byte[] decrypt(byte[] lengthAndCiphertext, byte[] AAD) { public byte[] decrypt(byte[] ciphertext, int cipherTextOffset, int cipherTextLength, byte[] AAD) { int plainTextLength = cipherTextLength - NONCE_LENGTH; - if (plainTextLength < 1) { + if (plainTextLength == 0) { Review Comment: @ggershinsky Does this look ok to you? -- 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: issues-unsubscr...@parquet.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@parquet.apache.org For additional commands, e-mail: issues-h...@parquet.apache.org