Fix bins command (#1313)

pull/1316/head
Gulshan Singh 3 years ago committed by GitHub
parent e8a8e737c8
commit 5a323b4967
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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]

@ -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")

Loading…
Cancel
Save