summaryrefslogtreecommitdiff
path: root/libavcodec/cbs_jpeg_syntax_template.c
Commit message (Collapse)AuthorAge
* avcodec/cbs_jpeg: Fix size of huffman symbol table arrayAndreas Rheinhardt2022-02-11
| | | | | | L[i] can be in the range of 0-255, see table B.5 of ITU T.81. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/cbs_jpeg_syntax_template: Check array index in huffman_table()Michael Niedermayer2020-04-15
| | | | | | | | Fixes: index 224 out of bounds for type 'uint8_t [224]' Fixes: 21534/clusterfuzz-testcase-minimized-ffmpeg_BSF_TRACE_HEADERS_fuzzer-6291612167831552 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/cbs_jpeg_syntax_template: Check table index before use in dht()Michael Niedermayer2020-04-15
| | | | | | | | Fixes: out of array access Fixes: 21515/clusterfuzz-testcase-minimized-ffmpeg_BSF_TRACE_HEADERS_fuzzer-5766121576988672 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/cbs: Add JPEG supportMark Thompson2018-09-23