[gnome-terminal] Don't crash when receiving bogus data in the dbus	call
- From: Christian Persch <chpe src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-terminal] Don't crash when receiving bogus data in the dbus	call
 
- Date: Sat,  6 Nov 2010 12:11:33 +0000 (UTC)
 
commit b0b41a219fda65378a915882fddbabfeee92b9aa
Author: Christian Persch <chpe gnome org>
Date:   Sat Nov 6 13:10:30 2010 +0100
    Don't crash when receiving bogus data in the dbus call
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=650276 .
 src/terminal.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/terminal.c b/src/terminal.c
index 4925359..202b850 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -80,7 +80,9 @@ ay_to_strv (GVariant *variant,
 
   data = g_variant_get_fixed_array (variant, &data_len, sizeof (char));
   if (data_len == 0 || data_len > G_MAXSSIZE) {
-    *argc = 0;
+    if (argc)
+      *argc = 0;
+
     return NULL;
   }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]