File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -423,6 +423,7 @@ class BaseReport {
423
423
struct HeapChunk {
424
424
uptr begin = 0 ;
425
425
uptr size = 0 ;
426
+ u32 stack_id = 0 ;
426
427
bool from_small_heap = false ;
427
428
bool is_allocated = false ;
428
429
};
@@ -458,6 +459,7 @@ BaseReport::HeapChunk BaseReport::CopyHeapChunk() const {
458
459
result.size = chunk.ActualSize ();
459
460
result.from_small_heap = chunk.FromSmallHeap ();
460
461
result.is_allocated = chunk.IsAllocated ();
462
+ result.stack_id = chunk.GetAllocStackId ();
461
463
}
462
464
return result;
463
465
}
@@ -793,12 +795,11 @@ TailOverwrittenReport::~TailOverwrittenReport() {
793
795
Printf (" deallocated here:\n " );
794
796
Printf (" %s" , d.Default ());
795
797
stack->Print ();
796
- HwasanChunkView chunk = FindHeapChunkByAddress (untagged_addr);
797
- if (chunk.Beg ()) {
798
+ if (heap.begin ) {
798
799
Printf (" %s" , d.Allocation ());
799
800
Printf (" allocated here:\n " );
800
801
Printf (" %s" , d.Default ());
801
- GetStackTraceFromId (chunk. GetAllocStackId () ).Print ();
802
+ GetStackTraceFromId (heap. stack_id ).Print ();
802
803
}
803
804
804
805
InternalScopedString s;
You can’t perform that action at this time.
0 commit comments