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

AttributeError: property of 'Binary' object has no setter #1063

Closed
Septillion24 opened this issue May 30, 2024 · 1 comment
Closed

AttributeError: property of 'Binary' object has no setter #1063

Septillion24 opened this issue May 30, 2024 · 1 comment
Assignees

Comments

@Septillion24
Copy link

Describe the bug
Cannot set properties on lief.PE.Binary like has_debug or has_signatures properties on the binary like you can on other properties like "binary.header.time_date_stamps".

To Reproduce

binary = lief.PE.parse(binary_location)
binary.has_debug = 1 # AttributeError: property of 'Binary' object has no setter

Expected behavior
Should be able to set the variable for binary.has_debug so that it can later be written to the binary with binary.write(). This functionality exists for other PE properties like everything in binary.data_directories, etc.

Environment (please complete the following information):

  • System and Version: micromamba:0.25.1
  • Target format: PE
  • LIEF commit version: 0.14.1
@romainthomas
Copy link
Member

Yes this is on purpose.

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

No branches or pull requests

2 participants