Commit 762b50cc authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati
Browse files

ALSA: pcm: check for integer overflow during multiplication



Channel info data structure is parsed from userspace and if
user does not set the no. of channels correctly, it could lead
to security vulnerability if we don't check for overflow when the
no. of channels is multiplied with pcm bit width. Add a condition
to check for overflow during multiplication.

CRs-fixed: 537818
Change-Id: Ia3c31406dd8b7627ea704c076643c0348582da28
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent 3975a10f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment