Also enable xz and zstd compression as proposed by landry@ eight months ago. Include an upstream fix for a new sanity check that broke OJPEG compression; proposed by sthen@. ok sthen@
14 lines
453 B
Plaintext
14 lines
453 B
Plaintext
$OpenBSD: patch-libtiff_tif_luv_c,v 1.9 2019/11/29 16:43:01 naddy Exp $
|
|
Index: libtiff/tif_luv.c
|
|
--- libtiff/tif_luv.c.orig
|
|
+++ libtiff/tif_luv.c
|
|
@@ -748,7 +748,7 @@ static int itrunc(double x, int m)
|
|
return (int)x;
|
|
/* Silence CoverityScan warning about bad crypto function */
|
|
/* coverity[dont_call] */
|
|
- return (int)(x + rand()*(1./RAND_MAX) - .5);
|
|
+ return (int)(x + arc4random()*(1./UINT_MAX) - .5);
|
|
}
|
|
|
|
#if !LOGLUV_PUBLIC
|