klatt icon indicating copy to clipboard operation
klatt copied to clipboard

Invalid allocation size for iwave buffer

Open chdh opened this issue 6 years ago • 0 comments

The constant MAX_SAM (Maximum sample rate = 20000) is used to allocate the iwave buffer:

iwave = (int*) malloc(sizeof(int)*MAX_SAM);

But the iwave buffer is used for nspfr entries:

globals->nspfr = (globals->samrate * nmspf_def) / 1000;

for (globals->ns=0; globals->ns < globals->nspfr; globals->ns++)


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

chdh avatar Mar 15 '19 03:03 chdh