forked from enlightenment/efl
Revert "eina: eina_file - fix "invalid read of size 1" in valgrind"
This reverts commit f52f562891
.
This is reverted because it breaks eina_file_path_sanitize when using
"/../" in paths, for example:
eina_file_path_sanitize("/home/../mydir/myfile")
returns: "/mydir/myfili"
What invalid read size does this fix? Why was no test case specified?
Anyway, this change affects too much code to leave it in like this.
This commit is contained in:
parent
1051328256
commit
7cbf22212f
|
@ -88,7 +88,7 @@ _eina_file_escape(char *path, size_t len)
|
|||
char tmp;
|
||||
|
||||
len -= p + 3 - q;
|
||||
memmove(q, p + 3, len - (q - result) - 1);
|
||||
memmove(q, p + 3, len - (q - result));
|
||||
result[len] = '\0';
|
||||
p = q;
|
||||
|
||||
|
|
Loading…
Reference in New Issue