History

avformat/matroskadec: assert non NULL buf

The code is only called if size is > 0 so buf should not be NULL Helps: CID610554

Michael Niedermayer committed 4 years ago

Commit d84f0361 parent 7bfbd241 file · +2 −0Browse files

Unified · Split

libavformat/matroskadec.c+2−0
@@ -3701,6 +3701,8 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, AVBufferRef *buf · 3700 unmodified lines
37013701 uint64_t num;
37023702 int trust_default_duration;
37033703
3704+ av_assert1(buf);
3705+
37043706 ffio_init_context(&pb, data, size, 0, NULL, NULL, NULL, NULL);
37053707
37063708 if ((n = ebml_read_num(matroska, &pb.pub, 8, &num, 1)) < 0)

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