You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/adpcm_data: extend ff_adpcm_ima_cunning_index_table
Fixes: overread by 1 Fixes: 21880/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ADPCM_IMA_CUNNING_fuzzer-5717917221257216.fuzz Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -178,8 +178,8 @@ const int16_t ff_adpcm_mtaf_stepsize[32][16] = {
|
|||||||
-424, -1273, -2121, -2970, -3819, -4668, -5516, -6365, },
|
-424, -1273, -2121, -2970, -3819, -4668, -5516, -6365, },
|
||||||
};
|
};
|
||||||
|
|
||||||
const int8_t ff_adpcm_ima_cunning_index_table[8] = {
|
const int8_t ff_adpcm_ima_cunning_index_table[9] = {
|
||||||
-1, -1, -1, -1, 1, 2, 3, 4,
|
-1, -1, -1, -1, 1, 2, 3, 4, -1
|
||||||
};
|
};
|
||||||
|
|
||||||
const int16_t ff_adpcm_ima_cunning_step_table[61] = {
|
const int16_t ff_adpcm_ima_cunning_step_table[61] = {
|
||||||
|
@@ -42,7 +42,7 @@ extern const int16_t ff_adpcm_yamaha_indexscale[];
|
|||||||
extern const int8_t ff_adpcm_yamaha_difflookup[];
|
extern const int8_t ff_adpcm_yamaha_difflookup[];
|
||||||
extern const int16_t ff_adpcm_afc_coeffs[2][16];
|
extern const int16_t ff_adpcm_afc_coeffs[2][16];
|
||||||
extern const int16_t ff_adpcm_mtaf_stepsize[32][16];
|
extern const int16_t ff_adpcm_mtaf_stepsize[32][16];
|
||||||
extern const int8_t ff_adpcm_ima_cunning_index_table[8];
|
extern const int8_t ff_adpcm_ima_cunning_index_table[9];
|
||||||
extern const int16_t ff_adpcm_ima_cunning_step_table[61];
|
extern const int16_t ff_adpcm_ima_cunning_step_table[61];
|
||||||
|
|
||||||
#endif /* AVCODEC_ADPCM_DATA_H */
|
#endif /* AVCODEC_ADPCM_DATA_H */
|
||||||
|
Reference in New Issue
Block a user