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


##########
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:
   I just did a quick ugly test and verified this is an issue with not slicing 
of the footer. The code in the `else` block does perform this slice. I can 
split this out into a separate PR so it can go in before 55.0.



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