Hello community,

here is the log from the commit of package rrdtool for openSUSE:Factory
checked in at Mon May 16 09:29:28 CEST 2011.



--------
--- rrdtool/rrdtool.changes     2011-05-11 13:52:40.000000000 +0200
+++ /mounts/work_src_done/STABLE/rrdtool/rrdtool.changes        2011-05-12 
13:36:24.000000000 +0200
@@ -1,0 +2,5 @@
+Thu May 12 11:35:26 UTC 2011 - [email protected]
+
+- Fix two segfaults in the Tcl binding.
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


New:
----
  rrdtool-tclsegfault.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rrdtool.spec ++++++
--- /var/tmp/diff_new_pack.Vh50Uz/_old  2011-05-16 09:27:44.000000000 +0200
+++ /var/tmp/diff_new_pack.Vh50Uz/_new  2011-05-16 09:27:44.000000000 +0200
@@ -35,12 +35,13 @@
 Group:          Productivity/Scientific/Math
 Requires:       perl = %{perl_version}
 Version:        1.4.5
-Release:        6
+Release:        8
 %define cgilib_version 0.7
 # http://oss.oetiker.ch/rrdtool/pub/rrdtool-%{version}.tar.gz
 Source:         %{name}-%{version}.tar.bz2
 Patch1:         rrdtool-lua_lib64.patch
 Patch2:         rrdtool-tclversion.patch
+Patch3:         rrdtool-tclsegfault.patch
 # 
http://www.infodrom.org/projects/cgilib/download/cgilib-%{cgilib_version}.tar.gz
 Source1:        cgilib-%{cgilib_version}.tar.bz2
 Patch11:        cgilib-fix_automake.patch
@@ -61,6 +62,7 @@
 %patch1
 %endif
 %patch2
+%patch3
 pushd "cgilib-%{cgilib_version}"
 %patch11
 popd #cgilib

++++++ rrdtool-tclsegfault.patch ++++++
--- bindings/tcl/tclrrd.c
+++ bindings/tcl/tclrrd.c
@@ -472,6 +472,12 @@ static int Rrd_Graph(
     char    **argv2;
     CONST84 char *save;
 
+    if (argc < 2) {
+        Tcl_AppendResult(interp, "RRD Error: needs image filename",
+                         (char *) NULL);
+        return TCL_ERROR;
+    }
+
     /*
      * If the "filename" is a Tcl fileID, then arrange for rrd_graph() to 
write to
      * that file descriptor.  Will this work with windoze?  I have no idea.
@@ -597,6 +603,12 @@ static int Rrd_Resize(
 {
     char    **argv2;
 
+    if (argc < 2) {
+        Tcl_AppendResult(interp, "RRD Error: needs rrd filename",
+                         (char *) NULL);
+        return TCL_ERROR;
+    }
+
     argv2 = getopt_init(argc, argv);
     rrd_resize(argc, argv2);
     getopt_cleanup(argc, argv2);

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to