Several functions perform out-of-bounds memory accesses (which is UB) #559
Open
Description
opened on Dec 1, 2023
I found this code which openly admits to doing OOB accesses:
compiler-builtins/src/mem/impls.rs
Lines 64 to 70 in 2a67ad7
This code also looks suspicious, e.g. if this is used to implement 2-byte atomic accesses then there is OOB here:
compiler-builtins/src/arm_linux.rs
Lines 57 to 89 in 56172fc
I haven't done a thorough audit so there might be more. I found these by grepping for atomic_load_unordered
.
Metadata
Assignees
Labels
No labels
Activity