google / zerocopy

https://docs.rs/zerocopy
Apache License 2.0
1.03k stars 80 forks source link

Audit and test that validation order is consistent #1331

Open jswrenn opened 1 month ago

jswrenn commented 1 month ago

Our conversion methods should perform their runtime validation checks in a consistent order; e.g., checking alignment, then size, then bit validity. This ordering should be both internally consistent, and, ideally, SemVer stable.

jswrenn commented 1 week ago

Removed the https://github.com/google/zerocopy/labels/blocking-next-release label, in favor of the more moderate approach of documented that we strive for a particular validation order, but we do not actually guarantee it.