openbsd-ports/graphics/png/patches/patch-tests_pngstest
naddy 196a3a3002 SECURITY update to 1.6.19:
Multiple buffer overflows in the png_set_PLTE and png_get_PLTE functions
CVE-2015-8126

ok sthen@
2015-11-14 20:27:09 +00:00

22 lines
635 B
Plaintext

$OpenBSD: patch-tests_pngstest,v 1.1 2015/11/14 20:27:09 naddy Exp $
sh fails to correctly parse case inside $()
--- tests/pngstest.orig Sat Sep 26 00:48:24 2015
+++ tests/pngstest Fri Nov 13 23:49:49 2015
@@ -17,7 +17,7 @@ gamma="$1"
shift
alpha="$1"
shift
-exec ./pngstest --tmpfile "${gamma}-${alpha}-" --log ${1+"$@"} $(
+exec ./pngstest --tmpfile "${gamma}-${alpha}-" --log ${1+"$@"} `
for f in "${srcdir}/contrib/testpngs/"*.png
do
g=
@@ -49,4 +49,4 @@ exec ./pngstest --tmpfile "${gamma}-${alpha}-" --log $
test "$alpha" = "opaque" -o "$alpha" = "none" && echo "$g";;
esac
done
-)
+`