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.
This commit is contained in:
parent
62b4e2a2da
commit
699fadd514
|
@ -777,7 +777,7 @@ evas_cache_image_mmap_request(Evas_Cache_Image *cache,
|
||||||
/* generate hkey from file+key+load opts */
|
/* generate hkey from file+key+load opts */
|
||||||
file_length = sizeof (Eina_File*) * 2;
|
file_length = sizeof (Eina_File*) * 2;
|
||||||
key_length = key ? strlen(key) : 6;
|
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);
|
hkey = alloca(sizeof (char) * size);
|
||||||
pf = (char*) &f;
|
pf = (char*) &f;
|
||||||
for (size = 0, i = 0; i < sizeof (Eina_File*); i++)
|
for (size = 0, i = 0; i < sizeof (Eina_File*); i++)
|
||||||
|
|
Loading…
Reference in New Issue