summaryrefslogtreecommitdiff
path: root/src/bin/evas
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-10-27 22:16:53 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-10-28 10:54:51 +0900
commit6ace8313728b31f602af8af90dbcb686031be562 (patch)
tree02fc0df8169ebf6f91da679695ca070a8aa8ec96 /src/bin/evas
parente550b37453f6f948566e8f8ec7ce97bba70546d2 (diff)
Evas cserve2: Check message size
Fixes CID 1039570
Diffstat (limited to 'src/bin/evas')
-rw-r--r--src/bin/evas/evas_cserve2_usage.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/evas/evas_cserve2_usage.c b/src/bin/evas/evas_cserve2_usage.c
index b1946ad374..449c9fdd44 100644
--- a/src/bin/evas/evas_cserve2_usage.c
+++ b/src/bin/evas/evas_cserve2_usage.c
@@ -133,6 +133,10 @@ _server_read(int *size)
133 if (n < 0) 133 if (n < 0)
134 return NULL; 134 return NULL;
135 135
136 // We don't expect large messages
137 if (sr_size < 0 || sr_size > 0x10000)
138 return NULL;
139
136 sr_buf = malloc(sr_size); 140 sr_buf = malloc(sr_size);
137 141
138get_data: 142get_data: