Closed DarkaMaul closed 4 years ago
Hello,
While trying to run BinCAT on a binary with types information, the following exception occurred :
raise error, v # invalid expression sre_constants.error: nothing to repeat
It is coming from npkgen when a structure has a regex special character in its name (e.g. +,*):
# File "idabincat/npkgen.py", line 83, in get_header_data search = r"(^\s*(?:typedef )?)\b%s\b" % s
Fixed line should be:
search = r"(^\s*(?:typedef )?)\b%s\b" % re.escape(s)
I can do a PR if needed/easier.
Hello, thanks for the report, yes a PR is welcome :)
Hello,
While trying to run BinCAT on a binary with types information, the following exception occurred :
It is coming from npkgen when a structure has a regex special character in its name (e.g. +,*):
Fixed line should be:
I can do a PR if needed/easier.