diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-11-19 00:05:58 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-11-19 00:05:58 +0000 |
commit | fdad4c527ab6d1ecfa644d2d03696618ed90edf1 (patch) | |
tree | a0f5373b4a9e78628dae030771cbd16f8e50e532 | |
parent | db40d3d08b41ff55e6c435f9141af0245bb31e62 (diff) | |
parent | 946c79ac5e769462e41e8eb5fc5ce07967068e31 (diff) | |
download | scudo-android12L-d2-s7-release.tar.gz |
Snap for 7929330 from 946c79ac5e769462e41e8eb5fc5ce07967068e31 to sc-d2-releaseandroid-12.1.0_r26android-12.1.0_r25android-12.1.0_r24android-12.1.0_r23android-12.1.0_r18android-12.1.0_r17android-12.1.0_r16android-12.1.0_r15android-12.1.0_r14android-12.1.0_r13android-12.1.0_r12android12L-d2-s8-releaseandroid12L-d2-s7-releaseandroid12L-d2-s6-releaseandroid12L-d2-s5-releaseandroid12L-d2-s4-releaseandroid12L-d2-s3-releaseandroid12L-d2-s2-releaseandroid12L-d2-s1-releaseandroid12L-d2-release
Change-Id: Ib3d106e34e18bae1c6758844987d8a7790b8a614
-rw-r--r-- | standalone/combined.h | 3 |
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); |