Skip to content

Fix OOB access due to erroneous shift in process_mask#990

Merged
Martin1887 merged 3 commits intopulldown-cmark:masterfrom
ollpu:fix-wrapping-shift
Dec 20, 2024
Merged

Fix OOB access due to erroneous shift in process_mask#990
Martin1887 merged 3 commits intopulldown-cmark:masterfrom
ollpu:fix-wrapping-shift

Conversation

@ollpu
Copy link
Collaborator

@ollpu ollpu commented Dec 13, 2024

This was changed to wrapping_shr in #652, but that is not correct. If the shift is too large, we should stop iterating the mask.

Fixes #651

Also added a simd pass-through feature to bench & fuzz for easier testing w/ SIMD.

@Martin1887 Martin1887 merged commit db58c31 into pulldown-cmark:master Dec 20, 2024
@Martin1887
Copy link
Collaborator

Thanks!

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.

cargo bench --all-features panic

2 participants