commit | 8aacfcf7abe5dbfa36841216fe4dd5e166bdada3 | [log] [tgz] |
---|---|---|
author | Aditya Bavanari <abavanar@codeaurora.org> | Fri Jun 21 15:56:39 2019 +0530 |
committer | Aditya Bavanari <abavanar@codeaurora.org> | Fri Jun 21 17:25:16 2019 +0530 |
tree | 5b8127b8cba4ca51cb707814b2e381c971a73e5e | |
parent | 45d02bcf0b2373346ac25e50168c95df9695027d [diff] |
asoc: codecs: Fix out of bounds access in register show functions In register show functions, 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: I1eb793721c653bf6d1fbd10f4cea3436ffe6f519 Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>