Sending an empty byte array to Ethumbd through the D-Bus API was
leading to a segfault.
--
João Paulo Rechi Vita
ProFUSION embedded systems
[email protected]
Index: src/bin/ethumbd.c
===================================================================
--- src/bin/ethumbd.c (revision 43121)
+++ src/bin/ethumbd.c (working copy)
@@ -905,10 +905,10 @@
dbus_message_iter_recurse(iter, &riter);
dbus_message_iter_get_fixed_array(&riter, &result, &length);
- if (result[0] == '\0')
+ if ((length == 0) || (result[0] == '\0'))
return NULL;
else
- return eina_stringshare_add(result);
+ return eina_stringshare_add_length(result, length);
}
static void
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel