klatt
klatt copied to clipboard
Invalid allocation size for iwave buffer
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.