[PATCH] D70761: scudo: Reverse order of testing sizes for realloc.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 27 07:59:27 PST 2019
pcc marked an inline comment as done.
pcc added inline comments.
================
Comment at: compiler-rt/lib/scudo/standalone/tests/combined_test.cpp:124
EXPECT_EQ(NewP, P);
for (scudo::uptr I = 0; I < scudo::Min(DataSize, NewSize); I++)
EXPECT_EQ((reinterpret_cast<char *>(NewP))[I], Marker);
----------------
We already have `scudo::Min(DataSize, NewSize)` here. The problem is that it increases from `DataSize - 32` to `DataSize` during the test. Maybe we should replace this with `DataSize - 32`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70761/new/
https://reviews.llvm.org/D70761
More information about the llvm-commits
mailing list