raster pushed a commit to branch master. http://git.enlightenment.org/legacy/imlib2.git/commit/?id=6e5d43617a9831cc6e3d26ede6061b51e6304305
commit 6e5d43617a9831cc6e3d26ede6061b51e6304305 Author: Fabian Keil <[email protected]> Date: Tue Dec 2 15:40:25 2014 +0100 imlib_conv: Use proper buffer size to prevent invalid write of size one --- src/bin/imlib2_conv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/imlib2_conv.c b/src/bin/imlib2_conv.c index 1c46d0c..975a4e0 100644 --- a/src/bin/imlib2_conv.c +++ b/src/bin/imlib2_conv.c @@ -59,7 +59,7 @@ main(int argc, char **argv) char *p, *q; /* max length of 8 for format name. seems reasonable. */ - q = p = malloc(8); + q = p = malloc(9); memset(p, 0, 8); strncpy(p, dot, (strlen(dot) < 9) ? strlen(dot) : 8); /* Imlib2 only recognizes lowercase formats. convert it. */ --
