Details
- Reviewers
hctim pcc cryptoad - Commits
- rGa0169b2ed198: [NFC][scudo] Add paramenters DCHECKs
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
It does not, as D103029 exposes gtest specific issue.
normally if (0 < uptr_var) ... should not produce the warning.
Scudo check has a different one, and I'll upload a patch.
compiler-rt/lib/scudo/standalone/memtag.h | ||
---|---|---|
215 | It's about return value. this one passes DCHECK for (uptr Size = 0; Size < 4 * archMemoryTagGranuleSize(); ++Size) { uptr Tagged = addFixedTag(P, 5); uptr TaggedEnd = Tagged + Size; EXPECT_EQ(roundUpTo(TaggedEnd, archMemoryTagGranuleSize()), storeTags(Tagged, TaggedEnd)); } | |
220 | Yes, not all tests pass, with or without the patch, but nothing fails any of this DCHECKs. QEMU itself crashes on nonaligned address https://github.com/qemu/qemu/blob/master/linux-user/aarch64/cpu_loop.c#L141 | |
231 | We have few calls there and as I understand the code, they can't be misaligned at current call-sites. |
This isn't right. The size is not required to be aligned to 16.