Return-Path: From: Lucas De Marchi To: linux-bluetooth@vger.kernel.org Cc: Lucas De Marchi Subject: [PATCH v2 1/6] gdbus: return if method signature is malformed Date: Thu, 19 Apr 2012 13:01:29 -0300 Message-Id: <1334851289-10945-1-git-send-email-lucas.demarchi@profusion.mobi> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --- gdbus/object.c | 4 ++++ 1 file changed, 4 insertions(+) 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, -- 1.7.10