Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2fbb18ec authored by Bhalchandra Gajare's avatar Bhalchandra Gajare Committed by Chaithanya Krishna Bacharaju
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
Change-Id: I9f451aa308214a4eac42b82e2abf1375c858ff30
Signed-off-by: default avatarBhalchandra Gajare <gajare@codeaurora.org>
parent 1faf9133
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment