From: Hyoyoung Chang <hyoyoung.chang@samsung.com>

Subject: [E-devel] elm_label patch(bugfix)

It's a bugfix patch of elm_label.
In strbuf_key_value_replace, null pointer reference can be occured



SVN revision: 55870
This commit is contained in:
Hyoyoung Chang 2011-01-05 06:21:24 +00:00 committed by Carsten Haitzler
parent 2c441b83a7
commit 5edd6acce3
1 changed files with 7 additions and 9 deletions

View File

@ -262,15 +262,13 @@ _strbuf_key_value_replace(Eina_Strbuf *srcbuf, const char *key, const char *valu
replocater = curlocater + key_len + 1; replocater = curlocater + key_len + 1;
while ((*replocater != '=') && (replocater)) while ((*replocater != '=') && (replocater))
replocater++; replocater++;
if (replocater)
{ while ((*replocater) &&
replocater++; (*replocater != ' ') &&
while ((*replocater != ' ') && (*replocater != '>'))
(*replocater != '>') && replocater++;
(!replocater))
replocater++; if ((replocater - curlocater) > (key_len + 1))
}
if (replocater)
{ {
replocater--; replocater--;
eina_strbuf_append_n(diffbuf, curlocater, eina_strbuf_append_n(diffbuf, curlocater,