Return-Path: From: Lucas De Marchi To: linux-bluetooth@vger.kernel.org Cc: Lucas De Marchi Subject: [PATCH BlueZ v5 01/13] gdbus: return if method signature is malformed Date: Wed, 16 May 2012 20:33:01 -0300 Message-Id: <1337211193-18230-2-git-send-email-lucas.demarchi@profusion.mobi> In-Reply-To: <1337211193-18230-1-git-send-email-lucas.demarchi@profusion.mobi> References: <1337211193-18230-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.2