gdbus: return if method signature is malformed
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 17 May 2012 18:19:58 +0000 (15:19 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 18 May 2012 02:57:55 +0000 (19:57 -0700)
gdbus/object.c

index 8bc12f5..7a94156 100644 (file)
@@ -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,