Skip to content

Commit

Permalink
fixed issue #23 & #24
Browse files Browse the repository at this point in the history
  • Loading branch information
scwuaptx committed Sep 25, 2018
1 parent 98d3c93 commit 49b5775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions angelheap/angelheap.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

# chunks
top = {}
fastbinsize = 10
fastbinsize = 13
fastbin = []
fastchunk = [] #save fastchunk address for chunkinfo check
tcache_entry = []
Expand Down Expand Up @@ -1204,7 +1204,7 @@ def putheapinfo(arena=None):
print(" <--> ",end = "")
print("")
for idx,bins in largebin.items():
print("\033[33m %15s[%2d]:\033[37m " % ("largebin",idx),end="")
print("\033[33m %15s[%2d]:\033[37m " % ("largebin",idx-64),end="")
for chunk in bins :
if "memerror" in chunk :
print("\033[31m0x%x (%s)\033[37m" % (chunk["addr"],chunk["memerror"]),end = "")
Expand Down

0 comments on commit 49b5775

Please sign in to comment.