[goffice] Plugins: fix potential free of random address.



commit 0da0cdeb8fdf6201f94dd37b51f1fcaa0262470e
Author: Morten Welinder <terra gnome org>
Date:   Thu Feb 21 17:45:56 2013 -0500

    Plugins: fix potential free of random address.

 ChangeLog                       |    6 ++++++
 goffice/app/go-plugin-service.c |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1d641f2..7c7b05e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2013-02-21  Morten Welinder  <terra gnome org>
 
+       * goffice/app/go-plugin-service.c
+       (go_plugin_service_resource_read_xml): Fix potential free of
+       random memory.
+
+2013-02-21  Morten Welinder  <terra gnome org>
+
        * goffice/math/go-regression.c (general_linear_regression): Drop
        the memset.  The constructor does it and with ref-counting it
        doesn't work.
diff --git a/goffice/app/go-plugin-service.c b/goffice/app/go-plugin-service.c
index 84922d0..494dee6 100644
--- a/goffice/app/go-plugin-service.c
+++ b/goffice/app/go-plugin-service.c
@@ -312,7 +312,7 @@ static void
 go_plugin_service_resource_read_xml (GOPluginService *service, xmlNode *tree, GOErrorInfo **ret_error)
 {
        GOPluginServiceResource *sr = GO_PLUGIN_SERVICE_RESOURCE (service);
-       char *data;
+       char *data = NULL;
        gsize length;
        xmlChar *file;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]