From d65daff3c31405612271e2c3a546edb1c512372c Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Wed, 27 Feb 2019 19:20:29 +0900 Subject: [PATCH] eio: fix not to overflow data by performing arithmetic. Change-Id: Id64560d2ac31b1b5b6dde0f520a5283fc37cfe1f --- src/lib/eio/eio_dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eio/eio_dir.c b/src/lib/eio/eio_dir.c index af2125a..68412b6 100644 --- a/src/lib/eio/eio_dir.c +++ b/src/lib/eio/eio_dir.c @@ -667,7 +667,7 @@ _eio_dir_rmrf_heavy(void *data, Ecore_Thread *thread) /* init counter */ step = 0; - count = eina_list_count(rmrf->files) + eina_list_count(rmrf->dirs) + 1; + count = ((long long) eina_list_count(rmrf->files)) + ((long long) eina_list_count(rmrf->dirs)) + 1; EINA_LIST_FREE(rmrf->files, file) { -- 2.7.4