We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13c816f commit d8fb220Copy full SHA for d8fb220
symphonia-metadata/src/utils/images.rs
@@ -82,6 +82,9 @@ fn parse_jpeg(mut reader: BufReader<'_>) -> Result<ImageInfo> {
82
83
return Ok(info);
84
}
85
+ if chunk_len < 2 {
86
+ return decode_error("meta (jpeg): invalid chunk length");
87
+ }
88
89
// Ignore the chunk. Exclude the chunk length that has already been read.
90
reader.ignore_bytes(u64::from(chunk_len) - 2)?;
0 commit comments