Skip to content

Conversation

mkeeter
Copy link
Owner

@mkeeter mkeeter commented Jan 19, 2025

Fixes #11, with three bugs discovered by fuzzing:

  • _NIP2r was incorrect in assembly, with two digits swapped
  • _SWP2r was incorrect in assembly, with a single digit mistake
  • sft was incorrect in the interpreter implementation, because wrapping_shl/shr doesn't return zeros if you shift out of range

@mkeeter mkeeter merged commit 66bbd30 into main Jan 19, 2025
8 checks passed
@mkeeter mkeeter deleted the fuzzy-fixes branch January 19, 2025 03:19
mkeeter added a commit that referenced this pull request Jan 19, 2025
Fixes #11, with three bugs discovered by fuzzing:

- `_NIP2r` was incorrect in assembly, with two digits swapped
- `_SWP2r` was incorrect in assembly, with a single digit mistake
- `sft` was incorrect in the interpreter implementation, because
  wrapping_shl/shr doesn't return zeros if you shift out of range
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.

svitlyna behaves differently using native backend
1 participant