Skip to content

Conversation

@Timmmm
Copy link
Contributor

@Timmmm Timmmm commented Jun 1, 2025

The loop condition was incorrect which meant it would read beyond the end of haystack and crash if it went beyond the end of memory. It would probably give incorrect counts too.

Fixes #97

The loop condition was incorrect which meant it would read beyond the end of `haystack` and crash if it went beyond the end of memory. It would probably give incorrect counts too.
@llogiq llogiq merged commit 91a8062 into llogiq:master Jun 1, 2025
1 of 55 checks passed
@llogiq
Copy link
Owner

llogiq commented Jun 1, 2025

Thank you! Good catch. I will cut a new release shortly.

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.

Out-of-bounds memory access on WASM

2 participants