ports/www/chromium/files/patch-third__party_unrar_src_crypt.cpp
Robert Nagy acb70e0682 www/chromium: update to 127.0.6533.88
This update also removes the --audio-backend command line switch
in favor of an actual setting in the browser that can be changed
at chrome://flags/#audio-backend

Security:	https://vuxml.freebsd.org/freebsd/15d398ea-4f73-11ef-8a0f-a8a1599412c6.html
2024-07-31 21:32:46 +02:00

11 lines
429 B
C++

--- third_party/unrar/src/crypt.cpp.orig 2024-07-30 11:12:21 UTC
+++ third_party/unrar/src/crypt.cpp
@@ -116,6 +116,8 @@ void GetRnd(byte *RndBuf,size_t BufSize)
Success=CryptGenRandom(hProvider, (DWORD)BufSize, RndBuf) != FALSE;
CryptReleaseContext(hProvider, 0);
}
+#elif defined(__OpenBSD__)
+ arc4random_buf(RndBuf, BufSize);
#elif defined(_UNIX)
FILE *rndf = fopen("/dev/urandom", "r");
if (rndf!=NULL)