diff options
| -rw-r--r-- | miasm/loader/pe_init.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/miasm/loader/pe_init.py b/miasm/loader/pe_init.py index 3e0c660e..202a7b00 100644 --- a/miasm/loader/pe_init.py +++ b/miasm/loader/pe_init.py @@ -46,8 +46,10 @@ class ContectRva(object): @rva_start: rva start address @rva_stop: rva stop address """ + if rva_start is None: + raise IOError("Out of range") if rva_start < 0: - raise ValueError("Out of range") + raise IOError("Out of range") if rva_stop is not None: if rva_stop > len(self.parent.img_rva): rva_stop = len(self.parent.img_rva) |