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

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/matroskadec.c+2−0
@@ -3701,6 +3701,8 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, AVBufferRef *buf · 3700 unmodified lines
3701 uint64_t num;3701 uint64_t num;
3702 int trust_default_duration;3702 int trust_default_duration;
3703 3703
3704 av_assert1(buf);
3705
3704 ffio_init_context(&pb, data, size, 0, NULL, NULL, NULL, NULL);3706 ffio_init_context(&pb, data, size, 0, NULL, NULL, NULL, NULL);
3705 3707
3706 if ((n = ebml_read_num(matroska, &pb.pub, 8, &num, 1)) < 0)3708 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