Elementary util: Fix possible invalid read in _elm_util_mkup_to_text.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 21 Apr 2011 12:09:43 +0000 (12:09 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 21 Apr 2011 12:09:43 +0000 (12:09 +0000)
Patch by WooHyun Jung.

git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@58795 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_util.c

index 4c67ebc..622aee4 100644 (file)
@@ -101,8 +101,9 @@ _elm_util_mkup_to_text(const char *mkup)
                        str = _str_append(str, ts, &str_len, &str_alloc);
                        free(ts);
                     }
-                  break;
                }
+
+             if (!*p) break;
           }
         if (*p == '<')
           {