diff --git a/src/bin/evas/evas_cserve2_slaves.c b/src/bin/evas/evas_cserve2_slaves.c index f790357bd8..72fc143c1c 100644 --- a/src/bin/evas/evas_cserve2_slaves.c +++ b/src/bin/evas/evas_cserve2_slaves.c @@ -222,6 +222,11 @@ _slave_proc_read_cb(int fd, Fd_Flags flags, void *data) { return; } + if ((ints[0] < 0) || (ints[0] > (128 * 1024))) + { + ERR("Invalid size to read: %i", ints[0]); + return; + } s->read.size = ints[0]; s->read.cmd = ints[1]; if (s->read.size)