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

Fix write_audio_16bit write_audio_24bit write_audio_32bit and write_audio_float function heap buffer overflow #204

Conversation

cometails
Copy link
Contributor

Fix write_audio_16bit write_audio_24bit write_audio_32bit and write_audio_float function heap buffer overflow

and write_audio_float function heap buffer overflow

Signed-off-by: Hao.Ding <dinghao@uniontech.com>
@fabiangreffrath
Copy link
Collaborator

@eustas What do you think?

@eustas
Copy link
Contributor

eustas commented Apr 11, 2024

Looks good. Will be more readable it we also make an increment to be 6; also it should be either i + 6 <= samples or i + 5 < samples

@fabiangreffrath
Copy link
Collaborator

also it should be either i + 6 <= samples or i + 5 < samples

Yes, that's what I thought. Thanks!

frontend/audio.c Outdated Show resolved Hide resolved
…udio_float function heap buffer overflow

Fix write_audio_16bit write_audio_24bit write_audio_32bit
and write_audio_float function heap buffer overflow

Signed-off-by: Hao Ding <dinghao@uniontech.com>
@fabiangreffrath fabiangreffrath merged commit abf9b32 into knik0:master Apr 16, 2024
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

Successfully merging this pull request may close these issues.

3 participants