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

Fix out of bounds access in DecodePixelData #175

Merged
merged 1 commit into from
Sep 9, 2022

Conversation

roehling
Copy link
Contributor

@roehling roehling commented Sep 8, 2022

I assumed that line_ptr is supposed to be calculated using width, not x_stride, as it is done for all other pixel types.
Tested with the proof-of-concept from #167 and fixes said issue.

@syoyo syoyo merged commit 8b09e9a into syoyo:master Sep 9, 2022
@syoyo
Copy link
Owner

syoyo commented Sep 9, 2022

@roehling Super awesome! Thanks! Confirmed the PR fiexes OOB segfault for poc file attached in #167 so merged!

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.

2 participants