rust-osdev / volatile

Apache License 2.0
70 stars 19 forks source link

Fix UB in slice methods when `Deref` returns different references #27

Closed Freax13 closed 1 year ago

Freax13 commented 2 years ago

This pr fixes the issues described in #26 by making sure that the bounds check are performed on the same dereferenced slice that is read from/written to.

Closes #26

phil-opp commented 1 year ago

Published as v0.4.6