summaryrefslogtreecommitdiff
path: root/src/bin/ethumb_client
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-09-19 23:03:20 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-09-19 23:03:20 +0100
commit99636bdd5ff56d752f523198902105663499f88b (patch)
tree86685019aae492d5b173702ce3d30ba0be29e1fb /src/bin/ethumb_client
parente243a60bb2f77c3156e4505619895863c4f1c1ff (diff)
ethumb - check inoput index from stdin
fix CID 1402646
Diffstat (limited to 'src/bin/ethumb_client')
-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 d7b7ff6680..984cc9bafa 100644
--- a/src/bin/ethumb_client/ethumbd_slave.c
+++ b/src/bin/ethumb_client/ethumbd_slave.c
@@ -667,6 +667,8 @@ _ec_op_setup(struct _Ethumbd_Child *ec)
667 r = _ec_read_safe(stdin, &idx, sizeof(idx)); 667 r = _ec_read_safe(stdin, &idx, sizeof(idx));
668 if (!r) 668 if (!r)
669 return 0; 669 return 0;
670 if ((idx < 0) || (idx >= NETHUMBS))
671 return 0;
670 672
671 r = _ec_read_safe(stdin, &type, sizeof(type)); 673 r = _ec_read_safe(stdin, &type, sizeof(type));
672 if (!r) 674 if (!r)