forked from enlightenment/efl
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:
parent
2c441b83a7
commit
5edd6acce3
|
@ -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 != '>'))
|
||||||
replocater++;
|
replocater++;
|
||||||
while ((*replocater != ' ') &&
|
|
||||||
(*replocater != '>') &&
|
if ((replocater - curlocater) > (key_len + 1))
|
||||||
(!replocater))
|
|
||||||
replocater++;
|
|
||||||
}
|
|
||||||
if (replocater)
|
|
||||||
{
|
{
|
||||||
replocater--;
|
replocater--;
|
||||||
eina_strbuf_append_n(diffbuf, curlocater,
|
eina_strbuf_append_n(diffbuf, curlocater,
|
||||||
|
|
Loading…
Reference in New Issue