projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7068a6c
)
eina: provide full string length to vsnprintf to allow for null character
author
Mike Blumenkrantz
<zmike@osg.samsung.com>
Thu, 26 Apr 2018 16:24:16 +0000
(12:24 -0400)
committer
Wonki Kim
<wonki_.kim@samsung.com>
Thu, 31 May 2018 05:41:07 +0000
(14:41 +0900)
Summary: fix T6903
Reviewers: segfaultxavi
Reviewed By: segfaultxavi
Subscribers: cedric
Maniphest Tasks: T6903
Differential Revision: https://phab.enlightenment.org/D6009
src/lib/eina/eina_stringshare.c
patch
|
blob
|
history
diff --git
a/src/lib/eina/eina_stringshare.c
b/src/lib/eina/eina_stringshare.c
index
f8510de
..
ab9924e
100644
(file)
--- a/
src/lib/eina/eina_stringshare.c
+++ b/
src/lib/eina/eina_stringshare.c
@@
-674,7
+674,7
@@
eina_stringshare_nprintf(unsigned int len, const char *fmt, ...)
tmp = alloca(sizeof(char) * (len + 1));
va_start(args, fmt);
- size = vsnprintf(tmp, len, fmt, args);
+ size = vsnprintf(tmp, len
+ 1
, fmt, args);
va_end(args);
if (size < 1)