Bug 1782988 - Fix use of arc4random_buf use in ping.cpp. r=gsvelto
authorMike Hommey <mh@glandium.org>
Sat, 12 Nov 2022 13:01:42 +0000 (14:01 +0100)
committerCarsten Schoenert <c.schoenert@t-online.de>
Tue, 15 Nov 2022 18:34:55 +0000 (18:34 +0000)
Forwarded: https://bugzilla.mozilla.org/show_bug.cgi?id=1782988

Gbp-Pq: Topic fixes
Gbp-Pq: Name Bug-1782988-Fix-use-of-arc4random_buf-use-in-ping.cpp.-r-.patch

toolkit/crashreporter/client/ping.cpp

index 49c6e2b7361c1d0f30745d59de4c4502713f1645..0d803841987dd6fa7f36295b4024ed19ee23b4ba 100644 (file)
@@ -53,7 +53,7 @@ static string GenerateUUID() {
 
   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);