raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=699fadd514a518074aca6d18dc1c4a91644142bf

commit 699fadd514a518074aca6d18dc1c4a91644142bf
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Fri Apr 17 11:04:38 2020 +0100

    evas cache - up padding just in case i was off by one
    
    coverity was complaining but it's a false positive - it seems to not
    realze the loadopts_append does nul terminate at the end.
---
 src/lib/evas/cache/evas_cache_image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/evas/cache/evas_cache_image.c 
b/src/lib/evas/cache/evas_cache_image.c
index 275a59a1d1..d412fe4110 100644
--- a/src/lib/evas/cache/evas_cache_image.c
+++ b/src/lib/evas/cache/evas_cache_image.c
@@ -777,7 +777,7 @@ evas_cache_image_mmap_request(Evas_Cache_Image *cache,
    /* generate hkey from file+key+load opts */
    file_length = sizeof (Eina_File*) * 2;
    key_length = key ? strlen(key) : 6;
-   size = file_length + key_length + 132;
+   size = file_length + key_length + 400; // enough padding for loadopts_append
    hkey = alloca(sizeof (char) * size);
    pf = (char*) &f;
    for (size = 0, i = 0; i < sizeof (Eina_File*); i++)

-- 


Reply via email to