Skip to content
Snippets Groups Projects
Commit 616883bd authored by Mekala Natarajan's avatar Mekala Natarajan
Browse files

ASoC: q6lsm: Add check for integer overflow


During sound model registration, the total memory size needed by the
sound model data is the sum of sound model length, number of zero
padding bytes and the calibration size. It is possible this sum
can result into integer overflow causing difficult to debug issues.
Add check for integer overflow to avoid such possible issues.

CRs-fixed: 792367
Bug: 28813987
Change-Id: I9f451aa308214a4eac42b82e2abf1375c858ff30
Signed-off-by: default avatarBhalchandra Gajare <gajare@codeaurora.org>
Signed-off-by: default avatarMekala Natarajan <mnatarajan@google.com>
parent d36b8965
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment