Fix memory corruption in AVX-512 codepath #6
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-sleepybishop/nanors!6
Loading…
Reference in a new issue
No description provided.
Delete branch "fix_avx512_oob"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The AVX-512 codepath incorrectly calculates the end of the caller's buffer using
sizeof(__m256i)but the elements being processed are actuallysizeof(__m512i).As a result,
reed_solomon_encode()andreed_solomon_decode()may write outside the bounds of the caller's buffer for certain block sizes when compiled with AVX-512 optimizations enabled.This was originally reported in https://github.com/LizardByte/Sunshine/issues/2543
Thank you for the fix!