Commit ba5b51b5 authored by rbultje's avatar rbultje

Another buffer overflow, fixes issue1758.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23011 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5501f316
...@@ -697,7 +697,7 @@ static void wiener_denoise(WMAVoiceContext *s, int fcb_type, ...@@ -697,7 +697,7 @@ static void wiener_denoise(WMAVoiceContext *s, int fcb_type,
ff_rdft_calc(&s->rdft, coeffs); ff_rdft_calc(&s->rdft, coeffs);
synth_pf[0] *= coeffs[0]; synth_pf[0] *= coeffs[0];
synth_pf[1] *= coeffs[1]; synth_pf[1] *= coeffs[1];
for (n = 1; n < 128; n++) { for (n = 1; n < 64; n++) {
float v1 = synth_pf[n * 2], v2 = synth_pf[n * 2 + 1]; float v1 = synth_pf[n * 2], v2 = synth_pf[n * 2 + 1];
synth_pf[n * 2] = v1 * coeffs[n * 2] - v2 * coeffs[n * 2 + 1]; synth_pf[n * 2] = v1 * coeffs[n * 2] - v2 * coeffs[n * 2 + 1];
synth_pf[n * 2 + 1] = v2 * coeffs[n * 2] + v1 * coeffs[n * 2 + 1]; synth_pf[n * 2 + 1] = v2 * coeffs[n * 2] + v1 * coeffs[n * 2 + 1];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment