Clarifications on the D-Bus specification

Rémi Denis-Courmont remi at remlab.net
Fri Dec 10 10:48:06 PST 2010


On Fri, 10 Dec 2010 13:33:10 -0500, Havoc Pennington <hp at pobox.com> wrote:
> In a quick look I don't see any limit in the libdbus source on
> recursing into nested types. The limit is just on the "depth" of the
> type signature, which does not reflect dynamic type recursion as
> created by variants.
> 
> It could probably be fixed by tracking the recursion depth in the
> iterators. But the API probably doesn't allow throwing an error from
> the right functions. So it could be tricky.

I am a bit concerned here. Unlimited recursion might trigger a call stack
overflow somewhere (I do mean proper stack overflow, not stack-based buffer
overflow).

-- 
Rémi Denis-Courmont
http://www.remlab.net
http://fi.linkedin.com/in/remidenis



More information about the dbus mailing list