2012-04-19 16:01:29

by Lucas De Marchi

[permalink] [raw]
Subject: [PATCH v2 1/6] 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 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