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

Commit 9f599b4a authored by Aditya Bavanari's avatar Aditya Bavanari
Browse files

soc: Fix out of bounds access in register show function



In register show function, when snprintf returns a negative value
out of bounds access occurs while copying the data to user.
Add return value check on snprintf before copy_to_user
to fix this.

Change-Id: I96bfa64b1603c966852c1d4d4a12651664f17aed
Signed-off-by: default avatarAditya Bavanari <abavanar@codeaurora.org>
parent 47673f2f
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