summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-04-17 11:04:38 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-04-17 11:06:32 +0100
commit699fadd514a518074aca6d18dc1c4a91644142bf (patch)
tree0ee19c07ca6ed60ac4c5ce75c4a1a5de68dc32f0
parent62b4e2a2da911aba45505966686c8424d380eb26 (diff)
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.
-rw-r--r--src/lib/evas/cache/evas_cache_image.c2
1 files changed, 1 insertions, 1 deletions
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,
777 /* generate hkey from file+key+load opts */ 777 /* generate hkey from file+key+load opts */
778 file_length = sizeof (Eina_File*) * 2; 778 file_length = sizeof (Eina_File*) * 2;
779 key_length = key ? strlen(key) : 6; 779 key_length = key ? strlen(key) : 6;
780 size = file_length + key_length + 132; 780 size = file_length + key_length + 400; // enough padding for loadopts_append
781 hkey = alloca(sizeof (char) * size); 781 hkey = alloca(sizeof (char) * size);
782 pf = (char*) &f; 782 pf = (char*) &f;
783 for (size = 0, i = 0; i < sizeof (Eina_File*); i++) 783 for (size = 0, i = 0; i < sizeof (Eina_File*); i++)