dont check corruption when chain size is one (#2379)

pull/2386/head
k4lizen 1 year ago committed by GitHub
parent f8895d0e47
commit 6dbedaed61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1383,7 +1383,7 @@ class GlibcMemoryAllocator(pwndbg.gdblib.heap.heap.MemoryAllocator, Generic[TheT
corrupt_chain_bk = full_chain_bk[: (corrupt_chain_size + 1)]
is_chain_corrupted = False
if corrupt_chain_size > 0:
if corrupt_chain_size > 1:
is_chain_corrupted = self.check_chain_corrupted(corrupt_chain_fd, corrupt_chain_bk)
return (chain_fd, chain_bk, is_chain_corrupted)

Loading…
Cancel
Save