diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2023-12-15 21:19:28 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-12-19 00:27:26 +0100 |
commit | a6a553ba947c54651ad3729fa85beb1ef678c3f5 (patch) | |
tree | 82f751a10d58a624646568e593fe734c10757342 /libavcodec | |
parent | f80b2ce9fa3235ce0e627d54df25e3f6cc929c05 (diff) | |
download | ffmpeg-a6a553ba947c54651ad3729fa85beb1ef678c3f5.tar.gz |
avcodec/cbs_vp8: fix GetBitContext setup
Fixes: abort()
Fixes: 64232/clusterfuzz-testcase-minimized-ffmpeg_BSF_TRACE_HEADERS_fuzzer-5417957987319808
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/cbs_vp8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cbs_vp8.c b/libavcodec/cbs_vp8.c index 01d4b9cefe..065156c248 100644 --- a/libavcodec/cbs_vp8.c +++ b/libavcodec/cbs_vp8.c @@ -307,7 +307,7 @@ static int cbs_vp8_read_unit(CodedBitstreamContext *ctx, frame = unit->content; // Create GetBitContext for uncompressed header. - err = init_get_bits8_le(&gbc, unit->data, 8 * unit->data_size); + err = init_get_bits8_le(&gbc, unit->data, unit->data_size); if (err < 0) return err; |