Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PyMemoryEditor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"""

__author__ = "Jean Loui Bernard Silva de Jesus"
__version__ = "2.0.0"
__version__ = "2.0.1"

import logging
import sys
Expand Down
4 changes: 2 additions & 2 deletions PyMemoryEditor/linux/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ def get_memory_regions(pid: int) -> Generator["MemoryRegion", None, None]:

with mapping_file:
for line in mapping_file:
region_information = line.split()
region_information = line.split(maxsplit=5)

try:
addressing_range, privileges, offset, device, inode = (
region_information[0:5]
)
path = region_information[5] if len(region_information) >= 6 else ""
path = region_information[5].strip() if len(region_information) >= 6 else ""
Comment on lines 192 to +196

start_address, end_address = [
int(addr, 16) for addr in addressing_range.split("-")
Expand Down
Loading