chore: Bump lzma-rs from 0.1.3 to 0.2.0

Bumps [lzma-rs](https://github.com/gendx/lzma-rs) from 0.1.3 to 0.2.0.
- [Release notes](https://github.com/gendx/lzma-rs/releases)
- [Changelog](https://github.com/gendx/lzma-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gendx/lzma-rs/compare/v0.1.3...v0.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot] 2021-05-03 08:44:32 +00:00 committed by Mike Welsh
parent 78627acc92
commit 185a4f5b8f
3 changed files with 5 additions and 3 deletions

4
Cargo.lock generated
View File

@ -1929,9 +1929,9 @@ dependencies = [
[[package]]
name = "lzma-rs"
version = "0.1.3"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "adc181f57e3b64bb860c476fe5751eb6f60e9fcf588b1447e24c0757c1c3101f"
checksum = "aba8ecb0450dfabce4ad72085eed0a75dffe8f21f7ada05638564ea9db2d7fb1"
dependencies = [
"byteorder",
"crc",

View File

@ -20,7 +20,7 @@ libflate = {version = "1.1", optional = true}
log = "0.4"
smallvec = "1.6.1"
flate2 = {version = "1.0", optional = true}
lzma-rs = {version = "0.1.3", optional = true }
lzma-rs = {version = "0.2.0", optional = true }
[dev-dependencies]
approx = "0.4.0"

View File

@ -166,6 +166,8 @@ fn make_lzma_reader<'a, R: Read + 'a>(
&mut output,
&Options {
unpacked_size: UnpackedSize::UseProvided(Some(uncompressed_length.into())),
allow_incomplete: true,
memlimit: None,
},
)
.map_err(|_| Error::invalid_data("Unable to decompress LZMA SWF."))?;