summaryrefslogtreecommitdiff
path: root/debian/patches/110_dispwin_segfault.patch
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-09-14 12:26:48 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-09-14 12:26:48 +0200
commitc8ec2bfa7b4d47a8e20cc311fd577002474b15c6 (patch)
treef37bf5dc61455c83e965dd6597abf1e3f30aa709 /debian/patches/110_dispwin_segfault.patch
parentfe6fa5c5a90206e28c8edd2c4dec32ccaa84c709 (diff)
some bug work
Diffstat (limited to 'debian/patches/110_dispwin_segfault.patch')
-rw-r--r--debian/patches/110_dispwin_segfault.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/110_dispwin_segfault.patch b/debian/patches/110_dispwin_segfault.patch
new file mode 100644
index 0000000..e08e924
--- /dev/null
+++ b/debian/patches/110_dispwin_segfault.patch
@@ -0,0 +1,20 @@
+Description: Add check for NULL pointer
+Author: Jörg Frings-Fürst <debian@jff-webhsoting.net>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700253
+Forwarded: Yes, to ML
+Reviewed-by:
+Last-Update: 2014-09-10
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/spectro/dispwin.c
+===================================================================
+--- trunk.orig/spectro/dispwin.c 2014-09-10 16:05:36.633175564 +0200
++++ trunk/spectro/dispwin.c 2014-09-10 16:06:16.781967935 +0200
+@@ -5493,6 +5493,7 @@
+
+ /* Display number */
+ else if (argv[fa][1] == 'd') {
++ if(na == NULL) usage("-d parameter missing");
+ if (strncmp(na,"web",3) == 0
+ || strncmp(na,"WEB",3) == 0) {
+ webdisp = 8080;