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

Python bin plugin issues #1

Open
aronsky opened this issue Mar 17, 2019 · 4 comments
Open

Python bin plugin issues #1

aronsky opened this issue Mar 17, 2019 · 4 comments
Labels
python Python RLang Plugin issues

Comments

@aronsky
Copy link
Contributor

aronsky commented Mar 17, 2019

Several issues in Python's bin plugin (let me know if they should be separated):

  1. The bin_obj object doesn't seem to be very useful. It's not usable in its current state (as it's just set to a C pointer during initialization, instead of being wrapped in a Python object). What is its purpose? The plugin seems to be working fine without it.
  2. PyBinFile_new and PyBinFile_init don't seem to be called, as initialization is done in create_PyBinFile instead... I assume those functions are there for initializing PyBinFile objects in Python, but that doesn't seem to work (unless I'm missing something) since the module isn't properly initialized. Is this code duplication (that can be fixed), or is this WIP?
  3. write_files is incomplete - is it WIP? Also, I think it should be either a module function, or a PyBinFile object method, I'm pretty sure it can't be both.
@XVilka
Copy link
Contributor

XVilka commented Mar 18, 2019

This is true. RBin Python plugins are WIP, largely because of the RBin refactoring in radare2 itself. This is why I put it on hold. On the other hand RBin refactoring is still ongoing and progressing very slow, so it might be still useful to remove code duplication and make them work. See RBin Refactoring project in radare2.

See also issue from this repo: https://github.com/radare/radare2-bindings/issues/197

@aronsky
Copy link
Contributor Author

aronsky commented Mar 18, 2019

I see. I will take a deeper look at the project when I have some time, as it's a bit overwhelming right now :)

Meanwhile, I'll make some PRs cleaning up the current code in RBin.

@XVilka
Copy link
Contributor

XVilka commented May 14, 2019

@aronsky any updates on this?

@aronsky
Copy link
Contributor Author

aronsky commented May 15, 2019

Sorry, haven't had the chance yet. The recent updates to radare2/RBin and the switch to MemoryView from a month ago made the current code workable. Will be glad to clean up the code in the future, once I get the time.

@XVilka XVilka transferred this issue from radareorg/radare2-bindings Nov 5, 2019
@XVilka XVilka added the python Python RLang Plugin issues label Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Python RLang Plugin issues
Projects
None yet
Development

No branches or pull requests

2 participants