You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
It seems the current codes lack sanity checks on metadata, making it vulnerable to corrupted files. The following gives a few example:
There are a bunch ofi32 as u32 without checking if the i32 is negative. Unfortunately these u32 may be used to guide buffer allocations (e.g., here) when reading data.
Using the read_parquet example to read the two bad files from here. Reading bad-dict-page-header.parquet may give an EOF error but internally the library already has called a Vec::reserve(N) where N is from a negative i32. Reading bad-levels.parquet would simply stuck in infinite loop.
Expected behavior
Examine the metadata and return proper errors
Activity
alamb commentedon Jan 6, 2025
Given we have merged several relevant PRs I think we should close this ticket. What do you think @jp0317 ?
jp0317 commentedon Jan 9, 2025
sure, thanks!