Closed
Description
opened on Feb 13, 2024
Is provenance required in order to perform zero-sized accesses? Following up on rust-lang/rust#116677 (comment), I understand that it is sound (e.g. per the ptr
module docs) to perform a zero-sized load or store using a pointer derived from any non-zero integer literal. Since integers do not have provenance, this implies that zero-sized accesses do not require valid provenance. Is that correct?
Metadata
Assignees
Labels
No labels
Activity