summaryrefslogtreecommitdiff
path: root/libavcodec/wma.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-10-31 14:38:16 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2019-11-20 15:50:15 +0100
commitc54b9fc42fee613e2c4c0dae2052ff94cd15e254 (patch)
tree93d2b400617968468ecb2ff3fbfd6f6ef3735c84 /libavcodec/wma.h
parent7fc1baf0ca83ef06014878290339a59735603959 (diff)
downloadffmpeg-c54b9fc42fee613e2c4c0dae2052ff94cd15e254.tar.gz
avcodec/wmadec: Require previous exponents for reuse
Fixes: division by zero Fixes: 18474/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMAV2_fuzzer-5764986962182144 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/wma.h')
-rw-r--r--libavcodec/wma.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/wma.h b/libavcodec/wma.h
index 325f03c44b..8344cb5b93 100644
--- a/libavcodec/wma.h
+++ b/libavcodec/wma.h
@@ -123,6 +123,7 @@ typedef struct WMACodecContext {
uint8_t last_superframe[MAX_CODED_SUPERFRAME_SIZE + AV_INPUT_BUFFER_PADDING_SIZE]; /* padding added */
int last_bitoffset;
int last_superframe_len;
+ int exponents_initialized;
float noise_table[NOISE_TAB_SIZE];
int noise_index;
float noise_mult; /* XXX: suppress that and integrate it in the noise array */