jihoon pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a9cfcf8dde95fafb82e557ce7ee0a20b3394dd20

commit a9cfcf8dde95fafb82e557ce7ee0a20b3394dd20
Author: Jihoon Kim <jihoon48....@samsung.com>
Date:   Thu Mar 20 08:44:56 2014 +0900

    Fix dereference null return value
    
    CID 1193210
    CID 1193211
---
 src/lib/edje/edje_entry.c            | 2 ++
 src/lib/edje/edje_textblock_styles.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c
index 6a2fb28..536bc20 100644
--- a/src/lib/edje/edje_entry.c
+++ b/src/lib/edje/edje_entry.c
@@ -1056,6 +1056,8 @@ _anchor_format_parse(const char *item)
    size_t len;
 
    start = strchr(item, '=');
+   if (!start) return NULL;
+
    start++; /* Advance after the '=' */
    /* If we can find a quote as the first non-space char,
     * our new delimiter is a quote, not a space. */
diff --git a/src/lib/edje/edje_textblock_styles.c 
b/src/lib/edje/edje_textblock_styles.c
index 4093c64..d174e4d 100644
--- a/src/lib/edje/edje_textblock_styles.c
+++ b/src/lib/edje/edje_textblock_styles.c
@@ -13,6 +13,8 @@ _edje_format_param_parse(char *item, char **key, char **val)
    char *p, *k, *v;
 
    p = strchr(item, '=');
+   if (!p) return;
+
    k = malloc(p - item + 1);
    strncpy(k, item, p - item);
    k[p - item] = 0;

-- 


Reply via email to