-
Notifications
You must be signed in to change notification settings - Fork 318
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
waves: verify payload size and initialize memory to zero to the allocated memory in waves.c #9009
Conversation
barry-waves
commented
Apr 8, 2024
index += param->size; | ||
} | ||
|
||
return ret; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return 0
Hi @lyakh, I wonder if module_adapter should return non-zero error code when |
3230e27
to
71bc7a7
Compare
@johnylin76 that's a good point! All the more that calling Line 983 in 2cfc85e
|
allocated memory in waves.c Enhance payload corruption handling by verifying size and make sure to have clean buffer before using it. Signed-off-by: barry.jan <barry.jan@waves.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
Thanks. I will provide that in the other PR afterwards. |