This is an archive of the discontinued LLVM Phabricator instance.

[Sanitizers] UUID/Build ID is 16 bytes on Darwin.
ClosedPublic

Authored by usama54321 on Jun 6 2023, 2:28 PM.

Details

Summary

https://reviews.llvm.org/D114294 changed the kModuleUUIDSize from 16 to 32 for
all platforms. This is not true for Darwin where the UUID is 16 bytes.

rdar://110346025

Diff Detail

Event Timeline

usama54321 created this revision.Jun 6 2023, 2:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 6 2023, 2:28 PM
Herald added a subscriber: Enna1. · View Herald Transcript
usama54321 requested review of this revision.Jun 6 2023, 2:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 6 2023, 2:28 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
usama54321 edited the summary of this revision. (Show Details)Jun 6 2023, 2:29 PM
usama54321 updated this revision to Diff 529047.Jun 6 2023, 2:31 PM

Fix typo in test name

fmayer added inline comments.Jun 6 2023, 4:10 PM
compiler-rt/lib/sanitizer_common/sanitizer_common.h
800

if you have a reference documenting this, could you add this here?

Changed ifdef to if.

The size of UUID is mostly documented internally. However, I do see references to the size inside the compiler-rt codebase,
such as in the FormatUUID function in sanitizer_mac.cpp.

usama54321 updated this revision to Diff 529437.Jun 7 2023, 2:30 PM

Updating missed ifdef to if

This revision was not accepted when it landed; it landed in state Needs Review.Jun 7 2023, 2:33 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.