summaryrefslogtreecommitdiff
path: root/src/bin/ethumb_client/ethumbd_slave.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-09-19 23:09:05 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-09-19 23:09:05 +0100
commitfa2f0b67b930c21d5c0d5c732339fe34b87411ec (patch)
tree75aaec5b20a8725477b4520e5407e8d124e5d9cc /src/bin/ethumb_client/ethumbd_slave.c
parent99636bdd5ff56d752f523198902105663499f88b (diff)
ethumb - check size read
fix CID 1402633
Diffstat (limited to '')
-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)
119 *str = NULL; 119 *str = NULL;
120 return 0; 120 return 0;
121 } 121 }
122 if ((size < 0) || (size >= PATH_MAX))
123 {
124 *str = NULL;
125 return 0;
126 }
122 127
123 if (!size) 128 if (!size)
124 { 129 {