Skip to content

Fix fuzz crashes#342

Merged
tolik518 merged 1 commit into
tolik518:masterfrom
Aras14HD:fix-fuzz
Jun 5, 2026
Merged

Fix fuzz crashes#342
tolik518 merged 1 commit into
tolik518:masterfrom
Aras14HD:fix-fuzz

Conversation

@Aras14HD

@Aras14HD Aras14HD commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Wanted to try out fuzzing and fuzzed factorion-lib (more specifically format, execute and parse). Found a few bugs and fixed them:

fix crash on division by 0 (any input with to be parsed containing {integer between integer_construction_limit/10 and integer_construction_limit}/0)
fix crash char boundary (any input with a non-ascii char just before a spoiler end, having a matching spoiler start previously)
parse as ComplexInfinity on non-finite float input fix crash on inf Float or Approximate in calculate_appropriate_factorial
fix crash on effectively infinite (as float) Exact in calculate_appropriate_factorial
fix overflowing negation (level i32::MIN)

Also in math (forgot to include in commit message):
fix overflowing multiplictions by 2
fix crash on negative input to approximate_termial

fix chrash on divison by 0
fix chrash char boundary
parse as ComplexInfinity on non-finite float input
fix crash on inf Float or Approximate in calculate_appropriate_factorial
fix crash on effectively infinite (as float) Exact in calculate_appropriate_factorial
@tolik518

tolik518 commented Jun 5, 2026

Copy link
Copy Markdown
Owner

Thanks a lot for keeping an eye open! Looks good to me, I'll merge and deploy

@tolik518 tolik518 merged commit c9037c2 into tolik518:master Jun 5, 2026
6 checks passed
@Aras14HD Aras14HD deleted the fix-fuzz branch June 6, 2026 08:59
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