Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.

Conversation

@wesm
Copy link
Member

@wesm wesm commented Feb 6, 2016

There actually was a legitimate bug fixed here for malformed Parquet files, but we are not yet in a position to write a decent test for it until PARQUET-497. I will make a note on that JIRA.

I also set our Travis CI build to fail on future compiler warnings.

This also closes #15.

@wesm wesm mentioned this pull request Feb 6, 2016
uint32_t metadata_len = *reinterpret_cast<uint32_t*>(footer_buffer);
size_t metadata_start = filesize - FOOTER_SIZE - metadata_len;
if (metadata_start < 0) {
if (FOOTER_SIZE + metadata_len > filesize) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

metadata_start < 0
<=> filesize - FOOTER_SIZE - metadata_len < 0
<=> filesize < FOOTER_SIZE + metadata_len
<=> FOOTER_SIZE + metadata_len > filesize
right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep

@julienledem
Copy link
Member

LGTM, +1

@wesm
Copy link
Member Author

wesm commented Feb 6, 2016

Cool, fire when ready. Thank you

@asfgit asfgit closed this in ecb6f60 Feb 6, 2016
@wesm wesm deleted the PARQUET-455 branch February 9, 2016 02:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants