summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammed Nayeem Ur Rahman <mohara@codeaurora.org>2019-11-26 11:22:28 +0530
committerMohammed Nayeem Ur Rahman <mohara@codeaurora.org>2020-06-02 12:44:31 +0530
commita4f9bb6cefee907ef60fe841e8df10a7bcdd8544 (patch)
tree7387499b248697db4c0b91cd8e04708a15fe80f3
parentb3aad0a5879a7090a5f1696e35761979c3ac0ac5 (diff)
ADSPRPC: Add check for input buffer in remote register buf API
Add a NULL pointer check for input buffer in remote register buf API. CRs-Fixed: 2564995 Change-Id: I43ce29e67cf8b9ca80d07169c78b7451eb5eada2
-rw-r--r--src/fastrpc_apps_user.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fastrpc_apps_user.c b/src/fastrpc_apps_user.c
index 328dfa0..39c904b 100644
--- a/src/fastrpc_apps_user.c
+++ b/src/fastrpc_apps_user.c
@@ -375,6 +375,7 @@ void *remote_register_fd(int fd, int size) {
static void remote_register_buf_common(void* buf, int size, int fd, int attr) {
int nErr = 0;
VERIFY(!fastrpc_init_once());
+ VERIFYC(NULL != buf, AEE_EBADPARM);
if(fd != -1) {
struct mem_to_fd* tofd;
int fdfound = 0;