From b4d3cfd5e04c798713c0f653e232e55fcafe837b Mon Sep 17 00:00:00 2001 From: rhunk <101876869+rhunk@users.noreply.github.com> Date: Wed, 18 Jun 2025 16:24:27 +0200 Subject: [PATCH] fix(native): out of bounds signature crash Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com> --- native/rust/src/sig.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/native/rust/src/sig.rs b/native/rust/src/sig.rs index ae943ba1..c3b62db6 100644 --- 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;