Skip to content

Commit

Permalink
fix partial slab
Browse files Browse the repository at this point in the history
  • Loading branch information
chrf01 committed May 27, 2024
1 parent 416ea74 commit 3591d71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pwndbg/gdblib/kernel/slab.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ def address(self) -> int:
@property
def partial_slabs(self) -> List[Slab]:
ret = []
for slab in for_each_entry(self._node_cache["partial"], "struct slab", "slab_list"):
for slab in for_each_entry(
self._node_cache["partial"], f"struct {slab_struct_type()}", "slab_list"
):
ret.append(Slab(slab.dereference(), None, self.slab_cache, is_partial=True))
return ret

Expand Down

0 comments on commit 3591d71

Please sign in to comment.