From 417d4851198adc3715f61747737527bf5ec2eb40 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 17 May 2012 15:19:58 -0300 Subject: [PATCH] gdbus: return if method signature is malformed --- gdbus/object.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdbus/object.c b/gdbus/object.c index 8bc12f53c..7a9415622 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, -- 2.47.3