commit | 4dbbce0f6338f2223c03bb8e57065d885ef49fd9 | [log] [tgz] |
---|---|---|
author | Prasad Kumpatla <nkumpat@codeaurora.org> | Thu Apr 09 17:24:02 2020 +0530 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Sat Apr 25 22:18:56 2020 -0700 |
tree | 926ad12f8587f942bc145968e24c6d12a3792024 | |
parent | 070556cb34606378febe037de5b9a7afdf9eee6b [diff] |
asoc: codecs: 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 and add sizeof() for tmp_buff to avoid buffer overflow. Change-Id: I15f1add37987d2176a165669d7a5b40bd576004c Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>