Skip to content

Commit

Permalink
fixed small bug w/OOB memory read with convolution
Browse files Browse the repository at this point in the history
  • Loading branch information
LMP88959 authored Jan 31, 2023
1 parent bcda9f0 commit f7b55f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crt_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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;
Expand Down

0 comments on commit f7b55f4

Please sign in to comment.