mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 01:02:33 +00:00
avformat/av1dec: Fix padding in obu_get_packet()
Fixes: stack buffer overflow (read) Fixes: 26369/clusterfuzz-testcase-minimized-ffmpeg_dem_VIVIDAS_fuzzer-5721057325219840 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
51002362c4
commit
2be51d14f2
@ -382,7 +382,7 @@ static int obu_read_header(AVFormatContext *s)
|
||||
static int obu_get_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
{
|
||||
ObuContext *c = s->priv_data;
|
||||
uint8_t header[MAX_OBU_HEADER_SIZE];
|
||||
uint8_t header[MAX_OBU_HEADER_SIZE + AV_INPUT_BUFFER_PADDING_SIZE];
|
||||
int64_t obu_size;
|
||||
int size = av_fifo_space(c->fifo);
|
||||
int ret, len, type;
|
||||
|
Loading…
Reference in New Issue
Block a user