summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-11-19 00:05:58 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-11-19 00:05:58 +0000
commitfdad4c527ab6d1ecfa644d2d03696618ed90edf1 (patch)
treea0f5373b4a9e78628dae030771cbd16f8e50e532
parentdb40d3d08b41ff55e6c435f9141af0245bb31e62 (diff)
parent946c79ac5e769462e41e8eb5fc5ce07967068e31 (diff)
downloadscudo-android12L-d2-s7-release.tar.gz
Change-Id: Ib3d106e34e18bae1c6758844987d8a7790b8a614
-rw-r--r--standalone/combined.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/standalone/combined.h b/standalone/combined.h
index 8080d677d7b..5eac56dc933 100644
--- a/standalone/combined.h
+++ b/standalone/combined.h
@@ -643,7 +643,7 @@ public:
if (ClassId) {
resizeTaggedChunk(reinterpret_cast<uptr>(OldTaggedPtr) + OldSize,
reinterpret_cast<uptr>(OldTaggedPtr) + NewSize,
- NewSize, BlockEnd);
+ NewSize, untagPointer(BlockEnd));
storePrimaryAllocationStackMaybe(Options, OldPtr);
} else {
storeSecondaryAllocationStackMaybe(Options, OldPtr, NewSize);
@@ -1156,6 +1156,7 @@ private:
// address tags against chunks. To allow matching in this case we store the
// address tag in the first byte of the chunk.
void storeEndMarker(uptr End, uptr Size, uptr BlockEnd) {
+ DCHECK_EQ(BlockEnd, untagPointer(BlockEnd));
uptr UntaggedEnd = untagPointer(End);
if (UntaggedEnd != BlockEnd) {
storeTag(UntaggedEnd);