Skip to content

Commit 16f1a82

Browse files
Merge pull request #68 from r0ny123/patch-1
Fix ValueError in `parseOepFromArgs` due to empty string argument
2 parents a10ef7a + 471f9a2 commit 16f1a82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

analyze.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def parseBaseAddrFromArgs(args):
2323
return 0
2424

2525
def parseOepFromArgs(args):
26-
if args.oep is not None:
26+
if args.oep and args.oep != '':
2727
parsed_oep = int(args.oep, 16) if args.oep.startswith("0x") else int(args.oep)
2828
logging.info("using provided OEP(RVA): 0x%08x", parsed_oep)
2929
return parsed_oep

0 commit comments

Comments
 (0)