From: Kostya Shishkov Date: Wed, 11 Feb 2026 17:34:54 +0000 (+0100) Subject: indeo3: relax size check X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=248e094ea89a82713e902eaaac61c8896ed9b426;p=nihav.git indeo3: relax size check borg95.avi (and maybe other Indeo 3.1 videos) declare size to be 16 bits more than real payload size. --- diff --git a/nihav-indeo/src/codecs/indeo3.rs b/nihav-indeo/src/codecs/indeo3.rs index 8adbc31..21b6a45 100644 --- a/nihav-indeo/src/codecs/indeo3.rs +++ b/nihav-indeo/src/codecs/indeo3.rs @@ -916,7 +916,7 @@ impl NADecoder for Indeo3Decoder { if (frameno ^ hdr_2 ^ size ^ FRMH_TAG) != check { return Err(DecoderError::InvalidData); } - if i64::from(size) > br.left() { + if i64::from(size) > br.left() + 16 { return Err(DecoderError::InvalidData); }