mirror of
https://github.com/mandiant/capa.git
synced 2026-02-04 11:07:53 -08:00
Add missing va parameter to SegmentationViolation
The `envi.SegmentationViolation()` was missing the `va` required parameter. This has started failing now, because calling `vw.getSegment(0x4BA190)` for the `tests/data/mimikatz.exe_` produces different results in Python 2 and Python 3. It returns `None` in Python 3 while the output in Python 2 is: `(4939776, 16840, '.data', 'mimikatz')` I have reported the issue to vivisect: https://github.com/vivisect/vivisect/issues/370
This commit is contained in:
@@ -239,7 +239,7 @@ def read_bytes(vw, va):
|
||||
"""
|
||||
segm = vw.getSegment(va)
|
||||
if not segm:
|
||||
raise envi.SegmentationViolation()
|
||||
raise envi.SegmentationViolation(va)
|
||||
|
||||
segm_end = segm[0] + segm[1]
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user