{"id":"RUSTSEC-2021-0094","summary":"Window can read out of bounds if Read instance returns more bytes than buffer size","details":"`rdiff` performs a diff of two provided strings or files. As part of its reading\ncode it uses the return value of a `Read` instance to set the length of\nits internal character vector.\n\nIf the `Read` implementation claims that it has read more bytes than the length\nof the provided buffer, the length of the vector will be set to longer than its\ncapacity. This causes `rdiff` APIs to return uninitialized memory in its API\nmethods.","aliases":["CVE-2021-45694","GHSA-2rxc-8f9w-fjq8","GHSA-q579-9wp9-gfp2"],"modified":"2023-11-08T04:07:22.314410Z","published":"2021-02-03T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/rdiff"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2021-0094.html"},{"type":"REPORT","url":"https://github.com/dyule/rdiff/issues/3"}],"affected":[{"package":{"name":"rdiff","ecosystem":"crates.io","purl":"pkg:cargo/rdiff"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"}]}],"ecosystem_specific":{"affects":{"functions":[],"os":[],"arch":[]},"affected_functions":null},"database_specific":{"informational":"unsound","source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0094.json","cvss":null,"categories":["memory-exposure"]}}],"schema_version":"1.7.3"}