devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=41a700b2d51d65e8a6b5b6490aac08e059a9038c
commit 41a700b2d51d65e8a6b5b6490aac08e059a9038c Author: Chris Michael <[email protected]> Date: Mon Nov 18 11:58:39 2013 +0000 ftell can return -1 to indicate error, so trap for that. Fixes Coverity CID1039356 Signed-off-by: Chris Michael <[email protected]> --- src/bin/eet/eet_main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/bin/eet/eet_main.c b/src/bin/eet/eet_main.c index e59c259..c2f0338 100644 --- a/src/bin/eet/eet_main.c +++ b/src/bin/eet/eet_main.c @@ -269,6 +269,13 @@ do_eet_insert(const char *file, fseek(f, 0, SEEK_END); size = ftell(f); + if (size < 0) + { + ERR("cannot obtain current file position %s", out); + fclose(f); + exit(-1); + } + rewind(f); data = malloc(size); if (!data) --
