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 filename in fuzzing corpus so it gets parsed during regression testing #1222

Merged
merged 2 commits into from
Jul 4, 2024

Conversation

fancycode
Copy link
Member

Follow-up to #1204

@fancycode
Copy link
Member Author

fancycode referenced this pull request Jul 4, 2024
heif_suberror_Security_limit_exceeded,
sstr.str());
}

image->set_resolution(width, height);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simpler fix would be to set the argument type for set_resolution() to uint32_t. It is uint32_t internally anyway.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, but it's returned as int in the getters and I didn't want to introduce any potential other errors by changing the type in various places.

libheif/libheif/context.h

Lines 117 to 119 in e42b01f

int get_width() const { return m_width; }
int get_height() const { return m_height; }

Also it's returned as int in the public API:

int heif_image_handle_get_width(const struct heif_image_handle* handle)

int heif_image_handle_get_height(const struct heif_image_handle* handle)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, makes sense.

@farindk farindk merged commit e476f58 into master Jul 4, 2024
34 of 36 checks passed
@farindk farindk deleted the fuzzer-fix-filename branch July 4, 2024 14:02
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