Mercurial > libavcodec.hg
changeset 11675:5c1363c233b8 libavcodec
Another buffer overflow, fixes issue1758.
author | rbultje |
---|---|
date | Sun, 02 May 2010 21:52:25 +0000 |
parents | bb0470c1ebd9 |
children | ceec2fb08b8e |
files | wmavoice.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/wmavoice.c Sun May 02 16:07:29 2010 +0000 +++ b/wmavoice.c Sun May 02 21:52:25 2010 +0000 @@ -697,7 +697,7 @@ ff_rdft_calc(&s->rdft, coeffs); synth_pf[0] *= coeffs[0]; 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]; 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];