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

fuzzer: The box_size_without_header must be positive #1012

Closed
wants to merge 1 commit into from

Conversation

dukesook
Copy link
Contributor

The fuzzer is throwing the following error:
/home/runner/work/libheif/libheif/libheif/box.cc:669:27: runtime error: implicit conversion from type 'int64_t' (aka 'long') of value -8 (64-bit, signed) to type 'size_t' (aka 'unsigned long') changed the value to 18446744073709551608 (64-bit, unsigned)

The BitstreamRange constructor expects a size_t, but an int64_t is being passed in (box.cc line 669). This is a problem when the value is negative.

@farindk
Copy link
Contributor

farindk commented Nov 2, 2023

I thought the problem was already fixed with 316291a.
Does this still occur? Is there an input to reproduce this?

@dukesook
Copy link
Contributor Author

dukesook commented Nov 2, 2023

Yes, you're correct. This issue has already been resolved. I'll close the PR.

@dukesook dukesook closed this Nov 2, 2023
@dukesook dukesook deleted the int64_t_to_size_t branch November 2, 2023 21:40
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