Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape single colon in names #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

giladreti
Copy link
Owner

Some IDA generated names are of the form [thunk]:funcname, but the and thus the generated name will be thunk_:funcname which is an illegal declaration name.

Change the bad c name matching regex to match a single colon (that is, a one which is not a part of a pair).
Also replace any occurrence of three or more consecutive colons, as this is also an invalid cpp name.

This fixes igogo-x86#79.

Some IDA generated names are of the form `[thunk]:funcname`, but the and thus the generated name will be `thunk_:funcname` which is an illegal declaration name.

Change the bad c name matching regex to match a single colon (that is, a one which is not a part of a pair).
Also replace any occurrence of three or more consecutive colons, as this is also an invalid cpp name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

invalid vtable definition
1 participant