Infinite loop in dbus - Limit of the message length very low ?
Havoc Pennington
hp at pobox.com
Mon Sep 29 13:56:16 PDT 2008
Hi,
On Mon, Sep 29, 2008 at 4:18 PM, KHOA NGUYEN <qa_tridang at hotmail.com> wrote:
>
> for (j = 0; j < N; j++)
> {
> if (!dbus_message_iter_append_basic(&struct_iter, DBUS_TYPE_INT32,
> &x[j])) {
> printf("Out Of Memory!\n");
> exit(1);
> }
> }
You should use an array rather than a structure for this, then you
will not hit any limits.
It is a bug that there's an infinite loop rather than an error
message, however. If you have a simple, 1-file, compilable test case
for the problem, that would be appreciated.
Havoc
More information about the dbus
mailing list