From c6b2f8bf97b13912c0b32ff4879ea3775df191d2 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 9 Nov 2024 12:00:23 +0100 Subject: [PATCH] rmdemux: check PROP chunk tag --- nihav-realmedia/src/demuxers/realmedia.rs | 1 + 1 file changed, 1 insertion(+) 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)); -- 2.39.5