Skip to content

Commit b4afb83

Browse files
committed
Report uninitialized memory exposure in truetype
1 parent 1794cae commit b4afb83

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
```toml
2+
[advisory]
3+
id = "RUSTSEC-0000-0000"
4+
package = "truetype"
5+
date = "2021-02-17"
6+
url = "https://github.com/bodoni/truetype/issues/11"
7+
categories = ["memory-exposure"]
8+
9+
[versions]
10+
patched = [">= 0.30.1"]
11+
```
12+
13+
# Tape::take_bytes exposes uninitialized memory to a user-provided Read
14+
15+
Affected versions of this crate passed an unininitialized buffer to a
16+
user-provided `Read` instance in `Tape::take_bytes`.
17+
18+
This can result in safe `Read` implementations reading from the uninitialized
19+
buffer leading to undefined behavior.
20+
21+
The flaw was corrected in commit `1f2dc7f37dd` by removing the unsafe block
22+
and zero-initializing the buffer.

0 commit comments

Comments
 (0)