From: | "Romain Perier (mrpouet)" <mrpouet@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in gnome-base/gconf/files: gconf-2.28.0-entry-set-value-sigsegv.patch |
Date: | Wed, 04 Nov 2009 21:43:40 |
Message-Id: | E1N5ndi-0005XU-Gs@stork.gentoo.org |
1 | mrpouet 09/11/04 21:43:38 |
2 | |
3 | Added: gconf-2.28.0-entry-set-value-sigsegv.patch |
4 | Log: |
5 | Do not crash in gconf_entry_set_value() when entry is NULL |
6 | (Portage version: 2.2_rc48/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 gnome-base/gconf/files/gconf-2.28.0-entry-set-value-sigsegv.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/gconf/files/gconf-2.28.0-entry-set-value-sigsegv.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/gconf/files/gconf-2.28.0-entry-set-value-sigsegv.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: gconf-2.28.0-entry-set-value-sigsegv.patch |
15 | =================================================================== |
16 | From: Romain Perier <mrpouet@g.o> |
17 | Date: Wed, 4 Nov 2009 11:58:25 +0100 |
18 | Subject: Do not segfault when entry is NULL |
19 | |
20 | --- |
21 | gconf/gconf-value.c | 1 + |
22 | 1 files changed, 1 insertions(+), 0 deletions(-) |
23 | |
24 | --- a/gconf/gconf-value.c |
25 | +++ b/gconf/gconf-value.c |
26 | @@ -1609,6 +1609,7 @@ void |
27 | gconf_entry_set_value (GConfEntry *entry, |
28 | const GConfValue *val) |
29 | { |
30 | + g_return_if_fail (entry != NULL); |
31 | gconf_entry_set_value_nocopy (entry, |
32 | val ? gconf_value_copy (val) : NULL); |
33 | } |