raster pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=679af3271fbc577602fded804dee6fe59748178f
commit 679af3271fbc577602fded804dee6fe59748178f Author: Carsten Haitzler (Rasterman) <[email protected]> Date: Mon Jul 11 21:54:57 2016 +0900 eet - fix possible integer overflow in ptr diff on parse coverity spotted this - with silly long strings (like 1gb in size or+) it might happen. fix CID 1256196 --- src/lib/eet/eet_lib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/eet/eet_lib.c b/src/lib/eet/eet_lib.c index 4d0dfba..d2c95c2 100644 --- a/src/lib/eet/eet_lib.c +++ b/src/lib/eet/eet_lib.c @@ -1757,7 +1757,9 @@ _base64_dec(const char *file, int *size_ret) } end = p; // go from line start to (but not including) first invalid char - if (((end - buf) > 0) && (((end - buf) % 4) == 0)) + if (((end - buf) > 0) && + ((end - buf) < 0x1fffffff) && // not too long + (((end - buf) % 4) == 0)) { unsigned char *tmp = malloc((end - buf + 4) * 2); --
