sbl_uni: sp tripwire stack-only whitelist (catch 105M smash site)
This commit is contained in:
+1
-1
@@ -354,7 +354,7 @@ def main():
|
|||||||
sp = mu.reg_read(_S)
|
sp = mu.reg_read(_S)
|
||||||
except Exception:
|
except Exception:
|
||||||
return
|
return
|
||||||
if not (0x07800000 <= sp < 0x08610000) and not (0x80000000 <= sp < 0x8A000000):
|
if not (0x07800000 <= sp < 0x08610000):
|
||||||
if len(_splog2) < 5:
|
if len(_splog2) < 5:
|
||||||
_splog2.append((count[0], addr, sp))
|
_splog2.append((count[0], addr, sp))
|
||||||
mu.hook_add(UC_HOOK_CODE, hook_spck)
|
mu.hook_add(UC_HOOK_CODE, hook_spck)
|
||||||
|
|||||||
Reference in New Issue
Block a user