mirror of https://github.com/pwndbg/pwndbg
Fix bins command (#1313)
This commit is contained in:
parent
e8a8e737c8
commit
5a323b4967
|
@ -40,7 +40,7 @@ def format_bin(bins: Bins, verbose=False, offset=None):
|
||||||
offset = allocator.chunk_key_offset("fd")
|
offset = allocator.chunk_key_offset("fd")
|
||||||
|
|
||||||
result = []
|
result = []
|
||||||
bins_type = bins.BinType
|
bins_type = bins.bin_type
|
||||||
|
|
||||||
for size in bins.bins:
|
for size in bins.bins:
|
||||||
b = bins.bins[size]
|
b = bins.bins[size]
|
||||||
|
|
|
@ -151,3 +151,5 @@ def test_heap_bins(start_binary):
|
||||||
result = allocator.largebins()
|
result = allocator.largebins()
|
||||||
assert result.bin_type == BinType.LARGE
|
assert result.bin_type == BinType.LARGE
|
||||||
assert result.bins[largebin_size].is_corrupted
|
assert result.bins[largebin_size].is_corrupted
|
||||||
|
|
||||||
|
gdb.execute("bins")
|
||||||
|
|
Loading…
Reference in New Issue