summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-09-19 23:13:08 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-09-19 23:13:08 +0100
commitd64d4568bd601dbf7081ff5abed1c9075a2ad08a (patch)
tree1b60706bdfe5731badd3c70e39275e23e00450d4 /src/bin
parentfd93bed3d1c604ae9238cce304a85668d9bf4c7a (diff)
ethumb - fix index range check
fix CID 1402628
Diffstat (limited to 'src/bin')
-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 70a9f886ac..c09c4ced5d 100644
--- a/src/bin/ethumb_client/ethumbd_slave.c
+++ b/src/bin/ethumb_client/ethumbd_slave.c
@@ -252,6 +252,8 @@ _ec_op_generate(struct _Ethumbd_Child *ec)
252 r = _ec_read_safe(stdin, &idx, sizeof(idx)); 252 r = _ec_read_safe(stdin, &idx, sizeof(idx));
253 if (!r) 253 if (!r)
254 return 0; 254 return 0;
255 if ((idx < 0) || (idx >= NETHUMBS))
256 return 0;
255 257
256 r = _ec_pipe_str_read(ec, &path); 258 r = _ec_pipe_str_read(ec, &path);
257 if (!r) 259 if (!r)