mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-28 07:48:14 +08:00
e7b80a52f5
The new call is also used in CrashReportDatabaseWin::PrepareNewCrashReport(). Previously, that method used the UUID::InitializeFromBytes() constructor. That actually caused various fields of the UUID to be byte-swapped so that the ::UUID and crashpad::UUID would be different UUIDs. Although a UUID is mostly random, the version field in data_3 is used as a namespace and should be 4 for random UUIDs, and this was not the case under swapping. TEST=crashpad_util_test UUID.FromSystem BUG=crashpad:1 R=scottmg@chromium.org Review URL: https://codereview.chromium.org/1004913004