[eso-midas] 12/16: Fix off-by-one length definition of "ident"

Ole Streicher olebole at moszumanska.debian.org
Wed Mar 25 14:16:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

olebole pushed a commit to branch debian
in repository eso-midas.

commit 9bd1bdece087ce560caaabf28d8bf2952ddf5400
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Wed Mar 25 13:58:38 2015 +0100

    Fix off-by-one length definition of "ident"
---
 debian/patches/fix_modgcur_c.patch | 18 ++++++++++++++++++
 debian/patches/series              |  1 +
 2 files changed, 19 insertions(+)

diff --git a/debian/patches/fix_modgcur_c.patch b/debian/patches/fix_modgcur_c.patch
new file mode 100644
index 0000000..eafcca6
--- /dev/null
+++ b/debian/patches/fix_modgcur_c.patch
@@ -0,0 +1,18 @@
+Author: Ole Streicher <olebole at debian.org>
+Description: Fix off-by-one length definition of "ident"
+ Otherwise, the line
+ .
+  ident[74] = '\0';
+ .
+ (few lines below the definition) may cause a segfault.
+--- a/prim/plot/src/modgcur.c
++++ b/prim/plot/src/modgcur.c
+@@ -83,7 +83,7 @@
+ 
+ double  start[DIMMAX], step[DIMMAX];
+ 
+-char    bin[5], name[62], ident[74], cunit[66], input[73], buff[81], *label[4];
++char    bin[5], name[62], ident[75], cunit[66], input[73], buff[81], *label[4];
+ char    *cpntr, *pntr;
+ 
+ /*
diff --git a/debian/patches/series b/debian/patches/series
index 449491c..81cf0ee 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -25,3 +25,4 @@ fix_cextrco_c.patch
 fix_ftoc.patch
 fix_md5_c.patch
 fix_txdisplay_c.patch
+fix_modgcur_c.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/eso-midas.git



More information about the debian-science-commits mailing list