aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/call.c
diff options
context:
space:
mode:
Diffstat (limited to 'samsung-ipc/call.c')
-rw-r--r--samsung-ipc/call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samsung-ipc/call.c b/samsung-ipc/call.c
index 58b0f52..37bdc20 100644
--- a/samsung-ipc/call.c
+++ b/samsung-ipc/call.c
@@ -71,7 +71,7 @@ struct ipc_call_list_entry *ipc_call_list_entry_extract(const void *data,
return NULL;
count = ipc_call_list_count_extract(data, size);
- if (count == 0)
+ if (count == 0 || index >= count)
return NULL;
offset = sizeof(struct ipc_call_list_header);