summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-astronomy/wcstools/files/wcstools-3.9.2-wcsinit_crash.patch')
-rw-r--r--sci-astronomy/wcstools/files/wcstools-3.9.2-wcsinit_crash.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/sci-astronomy/wcstools/files/wcstools-3.9.2-wcsinit_crash.patch b/sci-astronomy/wcstools/files/wcstools-3.9.2-wcsinit_crash.patch
new file mode 100644
index 0000000..f8de3da
--- /dev/null
+++ b/sci-astronomy/wcstools/files/wcstools-3.9.2-wcsinit_crash.patch
@@ -0,0 +1,20 @@
+Author: Ole Streicher <olebole@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
+--- a/libwcs/wcsinit.c
++++ b/libwcs/wcsinit.c
+@@ -399,11 +399,11 @@
+ }
+
+ /* World coordinate system reference coordinate information */
+- if (hgetsc (hstring, "CTYPE1", &mchar, 16, ctype1)) {
++ if (hgetsc (hstring, "CTYPE1", &mchar, 9, ctype1)) {
+
+ /* Read second coordinate type */
+ strcpy (ctype2, ctype1);
+- if (!hgetsc (hstring, "CTYPE2", &mchar, 16, ctype2))
++ if (!hgetsc (hstring, "CTYPE2", &mchar, 9, ctype2))
+ twod = 0;
+ else
+ twod = 1;