Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When parsing Quicktime subatoms, check the data length against... #227

Conversation

ben-xo
Copy link
Contributor

@ben-xo ben-xo commented Dec 29, 2019

...the expected length.

Sometimes a container will contain slightly more data than expected, enough to read the header of an atom which is actually outside of the container. This guards against that. (The atom will be correctly read as parallel to the container in the next pass).

Example: a 'moov' atom with the first 8 bytes of a subsequent 'uuid' atom that appears afterward.

Addresses #226

…pected length.

Sometimes a container will contain slightly more data than expected, enough to read the header of an atom which is actually outside of the container. This guards against that. (The atom will be correctly read as parallel to the container in the next pass).

Example: a 'moov' atom with the first 8 bytes of a subsequent 'uuid' atom that appears afterward.
@JamesHeinrich JamesHeinrich merged commit 897a9de into JamesHeinrich:master Dec 29, 2019
@codeprosoftware
Copy link

Is this related to the mdat issue I came across here: https://github.com/JamesHeinrich/getID3/issues/382? Where the call to QuicktimeParseAtom is reading the atom data with the full atom size, versus a read length of atom size - header size?

@ben-xo
Copy link
Contributor Author

ben-xo commented May 16, 2022

Is this related to the mdat issue I came across here: https://github.com/JamesHeinrich/getID3/issues/382? Where the call to QuicktimeParseAtom is reading the atom data with the full atom size, versus a read length of atom size - header size?

yes, it could be. see #226 - my comment here suggests that there may be such a bug - but I didn't find it at the time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants