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

bugfix: idautils.peutils_t had dup definitions of the same function #47

Merged
merged 1 commit into from
May 14, 2023

Conversation

0xeb
Copy link
Member

@0xeb 0xeb commented May 5, 2023

  • renamed the header property to its proper name: header_offset
  • added more docstrings
  • minor mods

…tion

- renamed the `header` property to its proper name: `header_offset`
- added more docstrings
- minor mods
@aundro
Copy link
Contributor

aundro commented May 5, 2023

So if I read the diff right, there was no way to retrieve the "header offset" prior to your changes, since it was under the name "header", which was overwritten by the header method returning the valobj. Is that correct?

Quick styling question: why not keeping a def header, but rather assigning a lambda to a key?

@0xeb
Copy link
Member Author

0xeb commented May 5, 2023

can you please clarify what you mean?

I left header as a function (not sure who uses header(), so I did not want to break compatibility).

This new change will not break compatibility, because first header was a property then it gets overridden by header as a function.
So now simply renaming to header_offset, will fix the situation without breaking existing code.

@0xeb 0xeb merged commit caeafef into idapython:master May 14, 2023
@0xeb 0xeb deleted the ren_peutils branch May 14, 2023 02:56
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.

2 participants