This fixes just a few of the warnings.
Ubsan is not completely clean yet,
but these somehow pop up while I was
fixing other sanitizers.
Depends on D107983.
Paths
| Differential D107984
ubsan: fix few format string bugs ClosedPublic Authored by dvyukov on Aug 12 2021, 11:20 AM.
Details
Summary This fixes just a few of the warnings. Depends on D107983.
Diff Detail
Event Timelinevitalybuka added inline comments.
This revision is now accepted and ready to land.Aug 12 2021, 12:21 PM dvyukov added a child revision: D108014: scudo/standalone: prepare for enabling format string checking.Aug 12 2021, 10:31 PM dvyukov marked an inline comment as done. Comment Actionsuse %p to print user reports
Closed by commit rG73710858b041: ubsan: fix few format string bugs (authored by dvyukov). · Explain WhyAug 13 2021, 4:45 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 366248 compiler-rt/lib/ubsan/ubsan_diag.cpp
|
%zx drops leading zeros, %p don't
would it be better to reinterpret_cast<void*> and %p here?