aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/call.c
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2014-07-27 00:29:44 +0200
committerPaul Kocialkowski <contact@paulk.fr>2014-07-27 00:29:44 +0200
commitdbcd5f77206148c7d446feda48031dde06c480a8 (patch)
tree4808f0460bc801953055cc4972ba76d6356104aa /samsung-ipc/call.c
parent2cdecfab4e695e1f48e7c302f21c46035160cae2 (diff)
downloadexternal_libsamsung-ipc-dbcd5f77206148c7d446feda48031dde06c480a8.zip
external_libsamsung-ipc-dbcd5f77206148c7d446feda48031dde06c480a8.tar.gz
external_libsamsung-ipc-dbcd5f77206148c7d446feda48031dde06c480a8.tar.bz2
svc: Helpers
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
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);