]> git.nihav.org Git - nihav.git/commitdiff
rmdemux: check PROP chunk tag
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 9 Nov 2024 11:00:23 +0000 (12:00 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 9 Nov 2024 14:34:05 +0000 (15:34 +0100)
nihav-realmedia/src/demuxers/realmedia.rs

index 297826054aa12a649c15167b3132e398a8e80a70..15738b5a420bb033653ab99a0800b53269aaca7e 100644 (file)
@@ -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));