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; |
|
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>
Thanks. I will provide that in the other PR afterwards. |