billiob pushed a commit to branch master. http://git.enlightenment.org/apps/ephoto.git/commit/?id=a0e367be4f7268d8a97107d4371d35d1350a9c72
commit a0e367be4f7268d8a97107d4371d35d1350a9c72 Author: Boris Faure <bill...@gmail.com> Date: Mon Nov 28 21:32:09 2016 +0100 ephoto_file: fix string not null-terminated. CID151522 --- src/bin/ephoto_file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/ephoto_file.c b/src/bin/ephoto_file.c index 5d86a36..d981743 100644 --- a/src/bin/ephoto_file.c +++ b/src/bin/ephoto_file.c @@ -938,9 +938,10 @@ _prompt_upload_apply(void *data, Evas_Object *obj EINA_UNUSED, return; } rewind(f); - fdata = malloc(fsize); + fdata = malloc(fsize+1); res = fread(fdata, fsize, 1, f); if (res < 1) CRIT("fread() failed on file '%s': %s", entry->path, strerror(errno)); + fdata[fsize] = '\0'; res = fclose(f); if (!res) CRIT("fclose() failed on file '%s': %s", entry->path, strerror(errno)); --