-
Notifications
You must be signed in to change notification settings - Fork 53
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
misc/hooks: fixed an invalid variable being used in the address.old_changed
hook when logging debug logs.
#60
Conversation
…changed` hook when logging debug logs.
@arizvisa Thanks, I just saw your message. Let me test it . : ) |
I using new hook.py , showing error message : Python>db.comment(0x006DA9CF, "123") |
Um. Wow. Did this ever work before, or is this the first time that you're using this part of it? It's complaining about not being able to write to its database, which is using IDA's netnodes... which is a very low-level interface. Give me a moment to come up with some things for you to run. |
Btw, this PR is fixed. I'm merging it and closing the issue. I'll re-create a ticket for the new bug and link you to it. |
@gool123456, I created issue #61 for the issue you just reported. Give me a moment to merge this and we'll work on that one. In the meantime, can you verify that |
I have your previous ida-minsc of ida 6.8, which is normal, the version released around April. |
When logging debug logs via the
address.old_changed
hook, IDA passes us a boolean on whether the comment is repeatable or not as "repeatable_cmt". When logging debug logs for this, the "repeatable" variable was mistakenly being used which would result in an exception being raiseed due to a non-existent variable. This PR fixes this issue by correcting the spelling of the name so that it references the parameter that we receive from IDA.This closes issue #59.