Fix bins command (#1313)

This commit is contained in:
Gulshan Singh 2022-10-20 20:46:06 -07:00 committed by GitHub
parent e8a8e737c8
commit 5a323b4967
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,7 @@ def format_bin(bins: Bins, verbose=False, offset=None):
offset = allocator.chunk_key_offset("fd")
result = []
bins_type = bins.BinType
bins_type = bins.bin_type
for size in bins.bins:
b = bins.bins[size]

View File

@ -151,3 +151,5 @@ def test_heap_bins(start_binary):
result = allocator.largebins()
assert result.bin_type == BinType.LARGE
assert result.bins[largebin_size].is_corrupted
gdb.execute("bins")