raster pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=83615efe6ae1878fd368e352d3ca85dca01b58e0
commit 83615efe6ae1878fd368e352d3ca85dca01b58e0 Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com> Date: Fri Dec 13 20:46:10 2013 +0900 ethumbd - fix possible out of bounds access to work table this should fix CID 1039314 in case an unsused table slot cannot be found. this should actualyl never happen because table expands/allocs zero out new entires so they are "unused". --- src/bin/ethumb_client/ethumbd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bin/ethumb_client/ethumbd.c b/src/bin/ethumb_client/ethumbd.c index a0313c5..5d58368 100644 --- a/src/bin/ethumb_client/ethumbd.c +++ b/src/bin/ethumb_client/ethumbd.c @@ -811,6 +811,12 @@ _ethumb_table_append(Ethumbd *ed) break; } + if (i >= q->max_count) + { + CRIT("cannot find free table slot in table of %i", q->max_count); + return -1; + } + snprintf(buf, sizeof(buf), "%s/%d", _ethumb_dbus_path, i); q->table[i].used = 1; q->table[i].path = eina_stringshare_add(buf); --