Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mem overflow bug #44

Open
zoff99 opened this issue Dec 3, 2020 · 2 comments
Open

mem overflow bug #44

zoff99 opened this issue Dec 3, 2020 · 2 comments

Comments

@zoff99
Copy link

zoff99 commented Dec 3, 2020

filter_audio/filter_audio.c

Lines 320 to 321 in ada2f4f

int16_t temp[nsx_samples];
memset(temp, 0, nsx_samples*sizeof(float));

memset tries to write twice the bytes of the actual buffer size

A/libc: FORTIFY: memset: prevented 640-byte write into 320-byte buffer

should say:

memset(temp, 0, nsx_samples*sizeof(int16_t)); 

thanks to @kaefert for helping me find this

@ghost
Copy link

ghost commented Dec 20, 2020

Will this get merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant