From ed08cbd7b172a1dba74230527ef761aafaf2fcce Mon Sep 17 00:00:00 2001 From: Rostislav Pehlivanov Date: Thu, 3 Dec 2015 23:12:37 +0000 Subject: aacenc_ltp: fix out of bounds memory access Discovered by Coverity. --- libavcodec/aacenc_ltp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/aacenc_ltp.c') diff --git a/libavcodec/aacenc_ltp.c b/libavcodec/aacenc_ltp.c index e19f3cc2d7..1917ee979e 100644 --- a/libavcodec/aacenc_ltp.c +++ b/libavcodec/aacenc_ltp.c @@ -167,7 +167,7 @@ void ff_aac_search_for_ltp(AACEncContext *s, SingleChannelElement *sce, if (sce->ics.window_sequence[0] == EIGHT_SHORT_SEQUENCE) { if (sce->ics.ltp.lag) { - memset(&sce->lcoeffs[0], 0.0f, 3072*sizeof(sce->lcoeffs[0])); + memset(&sce->ltp_state[0], 0, 3072*sizeof(sce->ltp_state[0])); memset(&sce->ics.ltp, 0, sizeof(LongTermPrediction)); } return; -- cgit v1.2.3