Fix capacity overflow in JpegReader

This commit is contained in:
fedotoff committed 2023-02-05 17:53:37 +03:00
1 parent 4dea7c4c81
commit 8fa175c371
2 files changed
+6

No files matched your search

+2
View File
@@ -1042,6 +1042,7 @@ impl<R: Read + Seek> Decoder<R> {
output_width,
byte_order,
chunk_index,
&self.limits,
)?;
Ok(())
@@ -1168,6 +1169,7 @@ impl<R: Read + Seek> Decoder<R> {
width as usize,
byte_order,
chunk as u32,
&self.limits,
)?;
}