forked from enlightenment/efl
ethumb - fix short alloc on stack not including nul char space
fix space for nul byte with alloca.
This commit is contained in:
parent
c3c903b9cc
commit
a84cfbae72
|
@ -911,7 +911,7 @@ _ethumb_generate_hash(const char *file)
|
||||||
{
|
{
|
||||||
char *tmp;
|
char *tmp;
|
||||||
|
|
||||||
tmp = alloca(length);
|
tmp = alloca(length + 1);
|
||||||
length = getxattr(file, "user.e.md5", tmp, length);
|
length = getxattr(file, "user.e.md5", tmp, length);
|
||||||
|
|
||||||
/* check if we have at least something that look like a md5 hash */
|
/* check if we have at least something that look like a md5 hash */
|
||||||
|
|
Loading…
Reference in New Issue