[med-svn] r20756 - trunk/packages/gff2aplot/trunk/debian/patches
Andreas Tille
tille at moszumanska.debian.org
Sun Dec 13 20:24:13 UTC 2015
Author: tille
Date: 2015-12-13 20:24:12 +0000 (Sun, 13 Dec 2015)
New Revision: 20756
Added:
trunk/packages/gff2aplot/trunk/debian/patches/mayhem.patch
Modified:
trunk/packages/gff2aplot/trunk/debian/patches/series
Log:
Fix Mayhem issue
Added: trunk/packages/gff2aplot/trunk/debian/patches/mayhem.patch
===================================================================
--- trunk/packages/gff2aplot/trunk/debian/patches/mayhem.patch (rev 0)
+++ trunk/packages/gff2aplot/trunk/debian/patches/mayhem.patch 2015-12-13 20:24:12 UTC (rev 20756)
@@ -0,0 +1,38 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Sun, 13 Dec 2015 19:13:06 +0100
+Bug-Debian: https://bugs.debian.org/715627
+Description: Deal with Mayhem issue
+
+--- a/src/ali2gff/ali2gff.c
++++ b/src/ali2gff/ali2gff.c
+@@ -93,7 +93,7 @@ int main(int argc, char *argv[]) {
+ strcpy(prgCall,argv[0]);
+ if (argc < 2) printUsage();
+
+- while (argv[1][0] == '-') {
++ while (argv[1] && argv[1][0] == '-') {
+ switch (argv[1][1]) {
+ case 't':
+ opt_t = 1;
+@@ -128,7 +128,11 @@ int main(int argc, char *argv[]) {
+ argv++; /* move the pointer to the right */
+ }
+ if (argc > 2) printUsage();
+- strcpy(infile,argv[1]);
++ if (!argv[1]) {
++ fprintf(stderr, "Missing file name");
++ printUsage();
++ }
++ strncpy(infile,argv[1],MAXSTRING);
+
+ /*----- choose output channel ----*/
+ if (opt_f) {
+@@ -136,7 +140,7 @@ int main(int argc, char *argv[]) {
+ fileptr = strrchr(infile,'/');
+ if (fileptr == NULL)
+ */
+- strcpy(outfile,infile);
++ strncpy(outfile,infile,MAXSTRING );
+ /*
+ else strcpy(outfile,++fileptr);
+ */
Modified: trunk/packages/gff2aplot/trunk/debian/patches/series
===================================================================
--- trunk/packages/gff2aplot/trunk/debian/patches/series 2015-12-13 18:17:48 UTC (rev 20755)
+++ trunk/packages/gff2aplot/trunk/debian/patches/series 2015-12-13 20:24:12 UTC (rev 20756)
@@ -1,3 +1,4 @@
02-blat2gff.diff
03-parseblast.diff
use-dpkg-buildflags.patch
+mayhem.patch
More information about the debian-med-commit
mailing list