Skip to content

Commit 57d76e2

Browse files
committed
lib/cuckoo: fix unknown memory protection flags
This is a temporary fix because when processing the Linux memory dumps it fails with an undefined value. Current it is incorrectly parsing the dump, but this is useful to visualize the dumps.
1 parent d5dd963 commit 57d76e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cuckoo/common/objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ def _prot_to_str(self, prot):
796796
if prot & PAGE_GUARD:
797797
return "G"
798798
prot &= 0xFF
799-
return self.protmap[prot]
799+
return self.protmap.get(prot, "UNKNOWN")
800800

801801
def pretty_print(self):
802802
new_addr_space = copy.deepcopy(self.address_space)

0 commit comments

Comments
 (0)