From f7b55f41dce4706397a820f345a056453f99b5c3 Mon Sep 17 00:00:00 2001 From: LMP88959 <109979235+LMP88959@users.noreply.github.com> Date: Mon, 30 Jan 2023 23:00:07 -0800 Subject: [PATCH] fixed small bug w/OOB memory read with convolution --- crt_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crt_core.c b/crt_core.c index 1687926..b0ff51d 100644 --- a/crt_core.c +++ b/crt_core.c @@ -76,7 +76,7 @@ crt_sincos14(int *s, int *c, int n) * eq function names preserved to keep code clean */ static struct EQF { - int h[5]; + int h[7]; } eqY, eqI, eqQ; /* params unused to keep the function the same */ @@ -100,7 +100,7 @@ eqf(struct EQF *f, int s) int i; int *h = f->h; - for (i = 4; i > 0; i--) { + for (i = 6; i > 0; i--) { h[i] = h[i - 1]; } h[0] = s;