History

demux_mkv: add missing invalid value check

Kacper Michajłow committed 1 year ago

Commit 442e21a1 parent d035a631 file · +3 −1Browse files

Unified · Split

demux/demux_mkv.c+3−1
@@ -3191,7 +3191,9 @@ static int read_next_block_into_queue(demuxer_t *demuxer) · 3190 unmodified lines
3191 }3191 }
3192 3192
3193 case MATROSKA_ID_BLOCKGROUP: {3193 case MATROSKA_ID_BLOCKGROUP: {
3194 int64_t end = ebml_read_length(s);3194 uint64_t end = ebml_read_length(s);
3195 if (end == EBML_UINT_INVALID)
3196 goto find_next_cluster;
3195 end += stream_tell(s);3197 end += stream_tell(s);
3196 if (end > mkv_d->cluster_end)3198 if (end > mkv_d->cluster_end)
3197 goto find_next_cluster;3199 goto find_next_cluster;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t