mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
viv: insn: derefs: fix exception
This commit is contained in:
@@ -165,7 +165,12 @@ def derefs(vw, p):
|
||||
return
|
||||
yield p
|
||||
|
||||
next = vw.readMemoryPtr(p)
|
||||
try:
|
||||
next = vw.readMemoryPtr(p)
|
||||
except Exception:
|
||||
# if not enough bytes can be read, such as end of the section.
|
||||
# unfortunately, viv returns a plain old generic `Exception` for this.
|
||||
return
|
||||
|
||||
# sanity: pointer points to self
|
||||
if next == p:
|
||||
|
||||
Reference in New Issue
Block a user