openbsd-ports/graphics/tiff/patches/patch-libtiff_tif_luv_c
landry f7d5bb5879 graphics/tiff: update to 4.5.0.
see https://libtiff.gitlab.io/libtiff/releases/v4.5.0.html
- bump major, libs now uses a symbol map cf
  https://gitlab.com/libtiff/libtiff/-/merge_requests/361
- some private symbols were used by comms/hylafax, which will be fixed in a few.
- drop patch-Makefile_in, use --disable-contrib instead (prompted by naddy@)
- disable sphinx, install provided built doc
- enable debug packages (prompted by naddy@)
- switch to an https homepage (prompted by rsadowski@)
- drop str* patches, some were merged upstream in
  72e90d07fb,
others are pointless (discussed with sthen@)

a switch to cmake might happen later.

tested in a bulk build by ajacoutot@, thanks !
2022-12-19 08:50:38 +00:00

13 lines
394 B
Plaintext

Index: libtiff/tif_luv.c
--- libtiff/tif_luv.c.orig
+++ libtiff/tif_luv.c
@@ -776,7 +776,7 @@ static int tiff_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. / RAND_MAX) - .5);
}
#if !LOGLUV_PUBLIC