Dear Elementary developers.
It's a bugfix patch of elm_label.
In strbuf_key_value_replace, null pointer reference can be occured
Thank you.
-------------------------------------------
Hyoyoung CHANG
Engineer
SAMSUNG ELECTRONICS, Co., Ltd.
E-mail: hyoyoung.ch...@samsung.com
-------------------------------------------
Index: TMP/st/elementary/src/lib/elm_label.c
===================================================================
--- TMP/st/elementary/src/lib/elm_label.c (revision 55778)
+++ TMP/st/elementary/src/lib/elm_label.c (working copy)
@@ -262,16 +262,12 @@
replocater = curlocater + key_len + 1;
while ((*replocater != '=') && (replocater))
replocater++;
- if (replocater)
+
+ while (*replocater && *replocater != ' ' && *replocater !=
'>')
+ replocater++;
+
+ if ((replocater - curlocater) > (key_len + 1))
{
- replocater++;
- while ((*replocater != ' ') &&
- (*replocater != '>') &&
- (!replocater))
- replocater++;
- }
- if (replocater)
- {
replocater--;
eina_strbuf_append_n(diffbuf, curlocater,
replocater-curlocater);
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel