B7: ec-vp9-syntax superframe index with no frame data is Corrupt, not a silent empty decode (reviewer item a); evidence: zero_size_entry_is_skipped still passes, all-zero index now errors
Browse files at this commit406f455fd4f9525bf5005d11b42abf904bef9013Parent: b5b1f881 changed file +3 -0
crates/ec-vp9-syntax/src/superframe.rsmodified+3 -0
| @@ -57,6 +57,9 @@ pub fn split(chunk: &[u8]) -> Result<Vec<&[u8]>> { | ||
| 57 | 57 | } |
| 58 | 58 | offset = end; |
| 59 | 59 | } |
| 60 | + if out.is_empty() { | |
| 61 | + return Err(Error::corrupt("VP9 superframe: index names no frame data")); | |
| 62 | + } | |
| 60 | 63 | Ok(out) |
| 61 | 64 | } |
| 62 | 65 |