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
31913191 }
31923192
31933193 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;
31953197 end += stream_tell(s);
31963198 if (end > mkv_d->cluster_end)
31973199 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