-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add advisory for out-of-bounds read in rdiff
- Loading branch information
1 parent
333e5cb
commit 56cf797
Showing
1 changed file
with
22 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,22 @@ | ||
```toml | ||
[advisory] | ||
id = "RUSTSEC-0000-0000" | ||
package = "rdiff" | ||
date = "2020-01-31" | ||
url = "https://github.com/dyule/rdiff/issues/3" | ||
categories = ["memory-exposure"] | ||
|
||
[versions] | ||
patched = [] | ||
``` | ||
|
||
# Window can read out of bounds if Read instance returns more bytes than buffer size | ||
|
||
`rdiff` performs a diff of two provided strings or files. As part of its reading | ||
code it uses the return value of a `Read` instance to set the length of | ||
its internal character vector. | ||
|
||
If the `Read` implementation claims that it has read more bytes than the length | ||
of the provided buffer, the length of the vector will be set to longer than its | ||
capacity. This causes `rdiff` APIs to return uninitialized memory in its API | ||
methods. |