Skip to content

Check libavif API return values, if available #16434

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

Closed
wants to merge 1 commit into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Oct 14, 2024

Note that I consider not checking and handling these return values a bug (for builds against libavif >= 1.1.0, where the allocation routines do not longer abort on OOM conditions); thus this should target PHP-8.2. To check the FreeBSD builds, which uncovered this issue, I'm targeting PHP-8.4 for now.

@cmb69
Copy link
Member Author

cmb69 commented Oct 14, 2024

This went better than expected, and I don't want to trigger CI again, just for adding a commit message; this could be copied over from libgd/libgd#893.

PS: nor do I want to change the target branch; should be applied to PHP-8.2, in my opinion.

@cmb69 cmb69 marked this pull request as ready for review October 14, 2024 10:49
@cmb69 cmb69 requested a review from devnexen as a code owner October 14, 2024 10:49
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

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

LGTM

@cmb69 cmb69 linked an issue Oct 14, 2024 that may be closed by this pull request
@cmb69 cmb69 closed this in b817a4f Oct 14, 2024
@cmb69 cmb69 deleted the cmb/libavif-return branch October 14, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unchecked libavif return values
2 participants