OSDN Git Service

avcodec/mlpdec: Check quant_step_size against huff_lsbs
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 May 2017 21:01:04 +0000 (23:01 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 3 Jun 2017 21:30:31 +0000 (23:30 +0200)
commit361e0310d95bf2a0377f168518d1135ae15ca3f8
treedba8471e8f75d48c9caf6c3b99b213ff7fa27b29
parent53e0d5d7247548743e13c59c35e59fc2161e9582
avcodec/mlpdec: Check quant_step_size against huff_lsbs

This reorders the operations so as to avoid computations with the above arguments
before they have been initialized.
Fixes part of 1708/clusterfuzz-testcase-minimized-5035111957397504

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mlpdec.c