demux_mkv: add missing invalid value check
This commit is contained in:
1 parent
d035a63913
commit
442e21a69c
1 file changed
+3
-1
+3
-1
@@ -3191,7 +3191,9 @@ static int read_next_block_into_queue(demuxer_t *demuxer)
|
||||
}
|
||||
|
||||
case MATROSKA_ID_BLOCKGROUP: {
|
||||
int64_t end = ebml_read_length(s);
|
||||
uint64_t end = ebml_read_length(s);
|
||||
if (end == EBML_UINT_INVALID)
|
||||
goto find_next_cluster;
|
||||
end += stream_tell(s);
|
||||
if (end > mkv_d->cluster_end)
|
||||
goto find_next_cluster;
|
||||
|
||||
Reference in new issue
Block a user