Show More
@@ -603,7 +603,7 b" impl<'revlog> RevlogEntry<'revlog> {" | |||||
603 | Ok(buf) |
|
603 | Ok(buf) | |
604 | } else { |
|
604 | } else { | |
605 | let cap = self.uncompressed_len.max(0) as usize; |
|
605 | let cap = self.uncompressed_len.max(0) as usize; | |
606 |
let mut buf = |
|
606 | let mut buf = Vec::with_capacity(cap); | |
607 | let len = zstd_decompress_to_buffer(self.bytes, &mut buf) |
|
607 | let len = zstd_decompress_to_buffer(self.bytes, &mut buf) | |
608 | .map_err(|e| corrupted(e.to_string()))?; |
|
608 | .map_err(|e| corrupted(e.to_string()))?; | |
609 | if len != self.uncompressed_len as usize { |
|
609 | if len != self.uncompressed_len as usize { |
General Comments 0
You need to be logged in to leave comments.
Login now