about summary refs log tree commit diff stats
path: root/example/disasm/callback.py
diff options
context:
space:
mode:
authorAna María Martínez Gómez <anamaria.martinezgom@FireEye.com>2020-08-18 19:59:30 +0200
committerAna María Martínez Gómez <anamaria.martinezgom@FireEye.com>2020-08-18 19:59:30 +0200
commitdecd99ff56b2f12e896d68bc89694601be7e0e77 (patch)
tree3ba3cb411bd07a05b89945c83cf35545b2cf7551 /example/disasm/callback.py
parenta01c29cd82f5a717e8dee622002e1ca3e189f420 (diff)
downloadmiasm-decd99ff56b2f12e896d68bc89694601be7e0e77.tar.gz
miasm-decd99ff56b2f12e896d68bc89694601be7e0e77.zip
Fix get_export_name_addr_list when there are no exports
If there are no exports, calling to `get_export_name_addr_list` raises
an exception at `miasm/jitter/loader/pe.py`, line 152:

```
AttributeError: 'DirExport' object has no attribute 'f_names'
```

Return an empty list instead.
Diffstat (limited to 'example/disasm/callback.py')
0 files changed, 0 insertions, 0 deletions