commit b4d3cfd5e04c798713c0f653e232e55fcafe837b
parent acc92ce907b903a011bcb32e026265629304b88f
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date: Wed, 18 Jun 2025 16:24:27 +0200
fix(native): out of bounds signature crash
Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com>
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/native/rust/src/sig.rs b/native/rust/src/sig.rs
@@ -37,6 +37,7 @@ pub fn find_signatures(module_base: usize, size: usize, pattern: &str, once: boo
}
let mut i = 0;
+ let size = size - bytes.len();
while i < size {
let mut found = true;
let mut j = 0;