This is an archive of the discontinued LLVM Phabricator instance.

sanitizer_common: disable format string checking on 32-bits
AbandonedPublic

Authored by dvyukov on Aug 16 2021, 12:27 AM.

Details

Summary

Check format strings on 64-bits only because we use %zx to print uptr type,
but %zx expects size_t and on 32-bits size_t is defined as 'unsigned int'
while we define uptr as 'unsigned long' which causes lots of -Wformat warnings.

Revert D108042 which disabled all format string checking because of 32-bit warnings.

Diff Detail

Event Timeline

dvyukov created this revision.Aug 16 2021, 12:27 AM
dvyukov requested review of this revision.Aug 16 2021, 12:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 16 2021, 12:27 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript

Okay, that commit was just reverted... llvm post-commit testing makes it very hard to do any progress...