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:11:53 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-09-19 23:11:53 +0100
commitfd93bed3d1c604ae9238cce304a85668d9bf4c7a (patch)
tree62f28bdda023da57cd08118d44648c2f9873ce2c /src/bin/ethumb_client/ethumbd_slave.c
parentfa2f0b67b930c21d5c0d5c732339fe34b87411ec (diff)
ethumb - fix index range check
fix CID 1402631
Diffstat (limited to '')
-rw-r--r--src/bin/ethumb_client/ethumbd_slave.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/ethumb_client/ethumbd_slave.c b/src/bin/ethumb_client/ethumbd_slave.c
index 04fcb3e79f..70a9f886ac 100644
--- a/src/bin/ethumb_client/ethumbd_slave.c
+++ b/src/bin/ethumb_client/ethumbd_slave.c
@@ -199,6 +199,8 @@ _ec_op_del(struct _Ethumbd_Child *ec)
199 r = _ec_read_safe(stdin, &idx, sizeof(idx)); 199 r = _ec_read_safe(stdin, &idx, sizeof(idx));
200 if (!r) 200 if (!r)
201 return 0; 201 return 0;
202 if ((idx < 0) || (idx >= NETHUMBS))
203 return 0;
202 204
203 DBG("ethumbd del(). idx = %d", idx); 205 DBG("ethumbd del(). idx = %d", idx);
204 206