From: Lucas De Marchi Date: Thu, 17 May 2012 18:19:58 +0000 (-0300) Subject: gdbus: return if method signature is malformed X-Git-Tag: 2.0_alpha~197 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=492912e95256f80fb4901402332bf6b7b29ee80b;p=framework%2Fconnectivity%2Fconnman.git gdbus: return if method signature is malformed --- diff --git a/gdbus/object.c b/gdbus/object.c index 8bc12f5..7a94156 100644 --- a/gdbus/object.c +++ b/gdbus/object.c @@ -107,6 +107,10 @@ static void print_arguments(GString *gstr, const char *sig, break; } + if (!complete) { + error("Unexpected signature: %s", sig); + return; + } if (direction) g_string_append_printf(gstr,