summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/ethumb_client/ethumbd_slave.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/ethumb_client/ethumbd_slave.c b/src/bin/ethumb_client/ethumbd_slave.c
index 984cc9bafa..04fcb3e79f 100644
--- a/src/bin/ethumb_client/ethumbd_slave.c
+++ b/src/bin/ethumb_client/ethumbd_slave.c
@@ -119,6 +119,11 @@ _ec_pipe_str_read(struct _Ethumbd_Child *ec EINA_UNUSED, char **str)
*str = NULL;
return 0;
}
+ if ((size < 0) || (size >= PATH_MAX))
+ {
+ *str = NULL;
+ return 0;
+ }
if (!size)
{