Add patch version for the unsoundness issue in dync (#427)

This commit is contained in:
Egor Larionov
2020-10-13 04:41:52 -07:00
committed by GitHub
parent 4da6145a2a
commit b6bcce2c6b

View File

@@ -7,10 +7,14 @@ informational = "unsound"
url = "https://github.com/elrnv/dync/issues/4"
[versions]
patched = []
patched = [">= 0.5.0"]
```
# VecCopy allows misaligned access to elements
`VecCopy::data` is created as a Vec of u8 but can be used to store and retrieve
elements of different types leading to misaligned access.
The issue was resolved in v0.5.0 by replacing data being stored by `Vec<u8>` with a custom managed
pointer. Elements are now stored and retrieved using types with proper alignment corresponding to
original types.