ntmemoryapi 2.2.0__tar.gz → 2.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: ntmemoryapi
3
- Version: 2.2.0
3
+ Version: 2.2.1
4
4
  Summary: Simple library for Windows to manipulate process virtual memory with stelthy syscall wraps.
5
5
  Author: Xenely
6
6
  Requires-Dist: psutil>=7.1.3
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ntmemoryapi"
3
- version = "2.2.0"
3
+ version = "2.2.1"
4
4
  description = "Simple library for Windows to manipulate process virtual memory with stelthy syscall wraps."
5
5
  authors = [
6
6
  {name = "Xenely"}
@@ -542,7 +542,7 @@ class Process:
542
542
  found_addresses = []
543
543
 
544
544
  # Pre-allocated buffer to hold read memory
545
- read_memory_buffer = (ctypes.c_byte * max(item[-1] for item in to_scan_regions) + 1)()
545
+ read_memory_buffer = (ctypes.c_byte * (max(item[-1] for item in to_scan_regions) + 1))()
546
546
 
547
547
  # Iterate regions to scan read them and find pattern
548
548
  for scan_adderss, scan_size in to_scan_regions:
File without changes