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

wrap_optimal_fit() - Checked arithmetic #392

Closed
wants to merge 1 commit into from

Conversation

MakotoE
Copy link
Contributor

@MakotoE MakotoE commented Jun 25, 2021

This fixes an arithmetic overflow due to passing a large width and a certain string. I did not replace all the possible overflow operations in wrap_optimal_fit() because they did not cause a crash during fuzz testing.

@mgeisler
Copy link
Owner

Hey @MakotoE, the bug you're fixing is discussed in #247. I've been looking at different ways of fixing it — please see the other open PRs.

@mgeisler
Copy link
Owner

mgeisler commented Jan 9, 2022

Fixed by #421.

@mgeisler mgeisler closed this Jan 9, 2022
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