summaryrefslogtreecommitdiff
path: root/debian/patches/110_dispwin_segfault.patch
blob: 62c40ff4178d14c3d4a8c8b3598714bdc131541f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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: http://www.freelists.org/post/argyllcms/dispwin-bad-command-line-option-makes-dispwin-segfault
Reviewed-by: 
Last-Update: 2014-09-14
---
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;