diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-01-08 23:29:38 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-01-16 01:29:18 +0100 |
commit | 6ed3d0e01c20aba7ef3984c0b8965d26e9f4990c (patch) | |
tree | 41d3e9b939990155390d3202d55bee658d716ac9 /libavcodec/dirac_arith.c | |
parent | 6dde65d7c0ac34ad1aa2619ec7d979cb6464f9af (diff) | |
download | ffmpeg-6ed3d0e01c20aba7ef3984c0b8965d26e9f4990c.tar.gz |
avcodec/diracdec: Propagate errors from dirac_get_arith_uint()
Testcase: 11663/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5636791864918016
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/dirac_arith.c')
-rw-r--r-- | libavcodec/dirac_arith.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/dirac_arith.c b/libavcodec/dirac_arith.c index 7eb9bd60b2..1e6b964772 100644 --- a/libavcodec/dirac_arith.c +++ b/libavcodec/dirac_arith.c @@ -115,6 +115,7 @@ void ff_dirac_init_arith_decoder(DiracArith *c, GetBitContext *gb, int length) c->counter = -16; c->range = 0xffff; + c->error = 0; for (i = 0; i < DIRAC_CTX_COUNT; i++) c->contexts[i] = 0x8000; |