[wcstools] 01/01: Fix crash with long CTYPEs. https://bugs.launchpad.net/ubuntu/+source/wcstools/+bug/1458333
Ole Streicher
olebole at moszumanska.debian.org
Wed May 27 08:57:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
olebole pushed a commit to branch debian
in repository wcstools.
commit 9d999c5f4b1ff71cc5a2a1171986314ac42d0846
Author: Ole Streicher <debian at liska.ath.cx>
Date: Wed May 27 10:50:27 2015 +0200
Fix crash with long CTYPEs.
https://bugs.launchpad.net/ubuntu/+source/wcstools/+bug/1458333
---
debian/changelog | 6 ++++++
debian/patches/fix_wcsinit_crash.patch | 23 +++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 30 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index a7c2179..c4ee8d0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+wcstools (3.9.2-2) unstable; urgency=low
+
+ * Fix crash with long CTYPEs. LP: #1458333
+
+ -- Ole Streicher <olebole at debian.org> Wed, 27 May 2015 10:44:10 +0200
+
wcstools (3.9.2-1) unstable; urgency=low
* New upstream version
diff --git a/debian/patches/fix_wcsinit_crash.patch b/debian/patches/fix_wcsinit_crash.patch
new file mode 100644
index 0000000..c3a3316
--- /dev/null
+++ b/debian/patches/fix_wcsinit_crash.patch
@@ -0,0 +1,23 @@
+Author: Ole Streicher <olebole at debian.net>
+Description: Increase c*type and ptype field string lengths
+ This is needed to allow C1TYPE='RA---TAN-SIP'
+Bug: https://bugs.launchpad.net/ubuntu/+source/saods9/+bug/1458333
+--- wcstools.orig/libwcs/wcs.h
++++ wcstools/libwcs/wcs.h
+@@ -119,12 +119,12 @@ struct WorldCoor {
+ int linmode; /* 0=system only, 1=units, 2=system+units */
+ int detector; /* Instrument detector number */
+ char instrument[32]; /* Instrument name */
+- char ctype[9][9]; /* Values of CTYPEn keywords */
+- char c1type[9]; /* 1st coordinate type code:
++ char ctype[9][16]; /* Values of CTYPEn keywords */
++ char c1type[16]; /* 1st coordinate type code:
+ RA--, GLON, ELON */
+- char c2type[9]; /* 2nd coordinate type code:
++ char c2type[16]; /* 2nd coordinate type code:
+ DEC-, GLAT, ELAT */
+- char ptype[9]; /* projection type code:
++ char ptype[16]; /* projection type code:
+ SIN, TAN, ARC, NCP, GLS, MER, AIT, etc */
+ char units[9][32]; /* Units if LINEAR */
+ char radecsys[32]; /* Reference frame: FK4, FK4-NO-E, FK5, GAPPT*/
diff --git a/debian/patches/series b/debian/patches/series
index 8cc0fdc..0ecbbc2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ fix_manpages.patch
use_abort.patch
fix_mayhem.patch
fix_compiler_warnings.patch
+fix_wcsinit_crash.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/wcstools.git
More information about the debian-science-commits
mailing list