Skip to content

Invalid allocation size for iwave buffer #5

@chdh

Description

@chdh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions