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

Bug#930906: unblock: pysynphot/0.9.12+dfsg-3



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Dear release team,

please unblock ftools-fv. It solves Bug#930857: "POW: fv crashes while
reading a file", severity: serious. Changelog entry:

ftools-fv (5.5+dfsg-2) unstable; urgency=medium

  * Fix WCS initialization in PowWCS.c (Closes: #930857)

 -- Ole Streicher <olebole@debian.org>  Fri, 21 Jun 2019 15:58:22 +0200

The debdiff is attached. Requested commands:

unblock ftools-fv/5.5+dfsg-2

Best regards

Ole



diff -Nru ftools-fv-5.5+dfsg/debian/changelog ftools-fv-5.5+dfsg/debian/changelog
--- ftools-fv-5.5+dfsg/debian/changelog	2019-06-21 15:56:36.000000000 +0200
+++ ftools-fv-5.5+dfsg/debian/changelog	2019-06-21 15:58:22.000000000 +0200
@@ -1,3 +1,9 @@
+ftools-fv (5.5+dfsg-2) unstable; urgency=medium
+
+  * Fix WCS initialization in PowWCS.c (Closes: #930857)
+
+ -- Ole Streicher <olebole@debian.org>  Fri, 21 Jun 2019 15:58:22 +0200
+
 ftools-fv (5.5+dfsg-1) unstable; urgency=medium
 
   * New upstream version 5.5+dfsg. Rediff patches
diff -Nru ftools-fv-5.5+dfsg/debian/patches/Fix-WCS-initialization-in-PowWCS.c.patch ftools-fv-5.5+dfsg/debian/patches/Fix-WCS-initialization-in-PowWCS.c.patch
--- ftools-fv-5.5+dfsg/debian/patches/Fix-WCS-initialization-in-PowWCS.c.patch	1970-01-01 01:00:00.000000000 +0100
+++ ftools-fv-5.5+dfsg/debian/patches/Fix-WCS-initialization-in-PowWCS.c.patch	2019-06-21 15:58:22.000000000 +0200
@@ -0,0 +1,27 @@
+From: Ole Streicher <olebole@debian.org>
+Date: Fri, 21 Jun 2019 15:46:45 +0200
+Subject: Fix WCS initialization in PowWCS.c
+
+The initialization used the wrong field, which caused a memory
+corruption.
+
+Closes: #930857
+---
+ tcltk/pow/PowWCS.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/tcltk/pow/PowWCS.c b/tcltk/pow/PowWCS.c
+index f04316c..c503536 100644
+--- a/tcltk/pow/PowWCS.c
++++ b/tcltk/pow/PowWCS.c
+@@ -28,7 +28,9 @@ void PowInitWCS( WCSdata *WCS, int n )
+    memset (WCS->type, '\0', 6);
+    memset (WCS->graphName, '\0', 1024);
+    memset (WCS->curveName, '\0', 1024);
+-   wcsini (1, n, WCS->graphName);
++   WCS->wcs = malloc(sizeof(struct wcsprm));
++   WCS->wcs->flag = -1;
++   wcsini (1, n, WCS->wcs);
+    WCS->haveWCSinfo = 0;
+ }
+ 
diff -Nru ftools-fv-5.5+dfsg/debian/patches/series ftools-fv-5.5+dfsg/debian/patches/series
--- ftools-fv-5.5+dfsg/debian/patches/series	2019-06-21 15:56:36.000000000 +0200
+++ ftools-fv-5.5+dfsg/debian/patches/series	2019-06-21 15:58:22.000000000 +0200
@@ -8,3 +8,4 @@
 Fv-Replace-the-startup-script-by-something-simpler.patch
 Fv-Change-default-temp-location-to-tmp.patch
 Relax-the-loaded-Itcl-version.patch
+Fix-WCS-initialization-in-PowWCS.c.patch

Reply to: