diff options
author | Tom Hacohen <tom@stosb.com> | 2014-01-28 10:10:05 +0000 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2014-01-28 10:10:29 +0000 |
commit | b3c678c14a5a9c9831f14b76cb01ae17dd9ad631 (patch) | |
tree | 09bd11d137a818f19456ed5110e5eba10d0ac4f0 | |
parent | a2d42191c134cfd3d13861536ed6919b35924c25 (diff) | |
download | efl-b3c678c14a5a9c9831f14b76cb01ae17dd9ad631.tar.gz |
Edje entry: Fix memory corruption (of by one in allocation).
This fixes T867.
-rw-r--r-- | src/lib/edje/edje_entry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c index 07a5389456..30fdfa9030 100644 --- a/src/lib/edje/edje_entry.c +++ b/src/lib/edje/edje_entry.c @@ -1072,7 +1072,7 @@ _anchor_format_parse(const char *item) if (end) len = end - start; else len = strlen(start); - tmp = malloc(len); + tmp = malloc(len + 1); strncpy(tmp, start, len); tmp[len] = '\0'; |