kylebarron commented on code in PR #7369:
URL: https://github.com/apache/arrow-rs/pull/7369#discussion_r2023603238


##########
parquet/src/file/metadata/reader.rs:
##########
@@ -710,7 +710,11 @@ impl ParquetMetaDataReader {
                 ));
             }
 
-            Ok((self.decode_footer_metadata(&meta, &footer)?, None))
+            // need to slice off the footer or decryption fails
+            Ok((
+                self.decode_footer_metadata(&meta.slice(0..length), &footer)?,

Review Comment:
   Perhaps we should add a test for this ASAP before the imminent release? cc 
@alamb 



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