forked from enlightenment/efl
evas cserve - fix validation of cserve mesg size field
fix coverity CID 1039567
This commit is contained in:
parent
eb57415a7a
commit
cc9a8a7dfe
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue