freebsd-ports/graphics/argyllcms/files/patch-spectro_dispwin.c
Koop Mast d7ff9210e6 * Set USES=compiler:c11 to select clang on 9.3-R. Pass MAKE_ENV to jam in
the do-build target so CC & friends get set in the enviroment so jam
  can pick them up. This fixes the build on 9.3-R amd64. [1]
* Add patch from debian to fix segfault in dispwin with bad command
  line options

Submitted by:	pkg-fallout [1]
2015-08-09 12:55:19 +00:00

17 lines
665 B
C

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
---
--- spectro/dispwin.c.orig 2015-05-01 10:15:55.000000000 +0200
+++ spectro/dispwin.c 2015-08-09 14:48:49.778919000 +0200
@@ -5547,6 +5547,7 @@
/* Display number */
else if (argv[fa][1] == 'd') {
+ if(na == NULL) usage(0,"-d parameter missing");
if (strncmp(na,"web",3) == 0
|| strncmp(na,"WEB",3) == 0) {
webdisp = 8080;