Fix for arc4random_buf build failures
This commit is contained in:
parent
f9d428a848
commit
cf253a604a
17
D154024.diff
Normal file
17
D154024.diff
Normal file
@ -0,0 +1,17 @@
|
||||
diff --git a/toolkit/crashreporter/client/ping.cpp b/toolkit/crashreporter/client/ping.cpp
|
||||
--- a/toolkit/crashreporter/client/ping.cpp
|
||||
+++ b/toolkit/crashreporter/client/ping.cpp
|
||||
@@ -51,11 +51,11 @@
|
||||
CFUUIDBytes bytes = CFUUIDGetUUIDBytes(uuid);
|
||||
memcpy(&id, &bytes, sizeof(UUID));
|
||||
|
||||
CFRelease(uuid);
|
||||
#elif defined(HAVE_ARC4RANDOM_BUF) // Android, BSD, ...
|
||||
- arc4random_buf(id, sizeof(UUID));
|
||||
+ arc4random_buf(&id, sizeof(UUID));
|
||||
#else // Linux
|
||||
int fd = open("/dev/urandom", O_RDONLY);
|
||||
|
||||
if (fd == -1) {
|
||||
return "";
|
||||
|
@ -127,6 +127,7 @@ Patch415: Bug-1238661---fix-mozillaSignalTrampoline-to-work-.patch
|
||||
#Patch416: firefox-SIOCGSTAMP.patch
|
||||
Patch418: mozilla-1512162.patch
|
||||
Patch419: cbindgen-already-covers.patch
|
||||
Patch420: D154024.diff
|
||||
#Patch419: bindgen-d0dfc52706f23db9dc9d74642eeebd89d73cb8d0.patch
|
||||
Patch103: rhbz-1219542-s390-build.patch
|
||||
# gcc 12 build fix patches
|
||||
@ -304,6 +305,8 @@ debug %{name}, you want to install %{name}-debuginfo instead.
|
||||
#FIXME %patch416 -p1 -b .SIOCGSTAMP
|
||||
%patch418 -p1 -b .mozbz-1512162
|
||||
%patch419 -p1 -b .cbindgen-already-covers
|
||||
#arc4random failures
|
||||
%patch420 -p1 -b .D154024.diff
|
||||
# most likely fixed
|
||||
#%patch419 -p1 -b .bindgen
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user