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

Out-Of-Bounds read in Ap4Stz2Atom #948

Open
QWeiheng opened this issue Apr 2, 2024 · 0 comments · May be fixed by #949
Open

Out-Of-Bounds read in Ap4Stz2Atom #948

QWeiheng opened this issue Apr 2, 2024 · 0 comments · May be fixed by #949

Comments

@QWeiheng
Copy link

QWeiheng commented Apr 2, 2024

Hello,

I find that in the AP4_Stz2Atom::AP4_Stz2Atom function, the sample_count obtained through stream.ReadUI08 may lack proper range validation. This can lead to a heap out-of-bounds read when calling AP4_BytesToUInt16BE, triggering a segment fault.

./mp42aac poc out

poc.zip

QWeiheng added a commit to QWeiheng/Bento4 that referenced this issue Apr 2, 2024
@QWeiheng QWeiheng linked a pull request Apr 2, 2024 that will close this issue
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 a pull request may close this issue.

1 participant