From: Kostya Shishkov Date: Sat, 9 Nov 2024 11:00:23 +0000 (+0100) Subject: rmdemux: check PROP chunk tag X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=c6b2f8bf97b13912c0b32ff4879ea3775df191d2;p=nihav.git rmdemux: check PROP chunk tag --- diff --git a/nihav-realmedia/src/demuxers/realmedia.rs b/nihav-realmedia/src/demuxers/realmedia.rs index 2978260..15738b5 100644 --- a/nihav-realmedia/src/demuxers/realmedia.rs +++ b/nihav-realmedia/src/demuxers/realmedia.rs @@ -1009,6 +1009,7 @@ impl<'a> RealMediaDemuxer<'a> { } let (id, size, ver) = read_chunk(self.src)?; + validate!(id == mktag!(b"PROP")); let prop_size = if ver == 0 { RMVB_PROP_SIZE } else { RMVB_PROP_SIZE + 4 }; validate!(size >= prop_size); validate!((ver == 0) || (ver == 2));