out of bound fix (#2393)

pull/2395/head
OBarronCS 1 year ago committed by GitHub
parent d6505b9b8c
commit 27ccbbaceb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -484,7 +484,7 @@ def info_proc_maps(parse_flags=True) -> Tuple[pwndbg.lib.memory.Page, ...]:
info_proc_mappings = []
# See if "Perms" is in the header line
perms_available = "Perms" in info_proc_mappings[3]
perms_available = len(info_proc_mappings) >= 4 and "Perms" in info_proc_mappings[3]
pages: List[pwndbg.lib.memory.Page] = []
for line in info_proc_mappings:

Loading…
Cancel
Save