WeTransfer / format_parser

file metadata parsing, done cheap
https://rubygems.org/gems/format_parser
Other
62 stars 18 forks source link

[NO JIRA] Prevent 0 Size Infinite Loop #232

Closed Kevin-McGonigle closed 1 year ago

Kevin-McGonigle commented 1 year ago

When an ISO Base Media File Format box has a size of 0, the box should be assumed to extend to the end of the file. We do not currently account for this scenario, leading to infite loops where the same box (perceived to have no size) is "parsed" over and over again (and a bunch of buffer position correction warnings). This PR fixes this oversight.