[gupnp-dlna] Fixed a potential crash in the native backend.
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp-dlna] Fixed a potential crash in the native backend.
- Date: Tue, 4 Dec 2012 09:19:56 +0000 (UTC)
commit 4d2232145077780325eb79df7bfdbaccb4618dbb
Author: Mark Ryan <mark d ryan intel com>
Date: Mon Dec 3 16:02:28 2012 +0100
Fixed a potential crash in the native backend.
Fixed a potential NULL pointer dereference problem in the value_new function
in gupnp-dlna-native-info-value.c.
https://bugzilla.gnome.org/show_bug.cgi?id=689596
.../native/sets/gupnp-dlna-native-info-value.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgupnp-dlna/profile-backends/native/sets/gupnp-dlna-native-info-value.c b/libgupnp-dlna/profile-backends/native/sets/gupnp-dlna-native-info-value.c
index 93f6611..6928fe1 100644
--- a/libgupnp-dlna/profile-backends/native/sets/gupnp-dlna-native-info-value.c
+++ b/libgupnp-dlna/profile-backends/native/sets/gupnp-dlna-native-info-value.c
@@ -45,8 +45,9 @@ value_new (GUPnPDLNANativeValueType *type,
g_slice_free (GUPnPDLNANativeInfoValue, info_value);
info_value = NULL;
}
+ else
+ info_value->unsupported = FALSE;
g_free (raw);
- info_value->unsupported = FALSE;
return info_value;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]