-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
atty
potential unsoundness (unaligned read) advisory
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
```toml | ||
[advisory] | ||
id = "RUSTSEC-0000-0000" | ||
package = "atty" | ||
date = "2021-07-04" | ||
url = "https://github.com/softprops/atty/issues/50" | ||
categories = ["unaligned-read"] | ||
informational = "unsound" | ||
|
||
[affected] | ||
os = ["windows"] | ||
|
||
[versions] | ||
patched = [] | ||
``` | ||
|
||
# Potential unaligned read | ||
|
||
On windows, `atty` dereferences a potentially unaligned pointer. | ||
In practice however, the pointer won't be unaligned unless a custom global allocator is used. | ||
In particular, the `System` allocator on windows uses `HeapAlloc`, which guarantees a large enough alignment. |