Add a more flexible way to adjust Magic or deal with new/alternate magic numbers.
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by reviewing the built-in magic-to-Python mappings and the pydisasm entry point, then inspect issue #69 for the alternate-magic case. Define how multiple magic numbers per Python version and optional overrides should work before implementing; done means new releases and alternate magics can be handled without updating the library each time.
Written by the indexing model from the issue text.
Description
Right now xdis needs to be update every time a new Python release comes out. This is by design because we do want to have this program be a reference on valid Python's rather than hypothetical ones.
However one proble is that right now we can only handle one magic number per Python version and sometimes for a given Python version there can be more than one. See for example #69.
Propose and implement a way to accomodate these problems.
One possibility is to add a parameter to override the built-in magic to Python mappings. And an option to pydisasm could allow a magic number override.
No doubt there are a number of other possibilityes.
- Dominant language
- Python
- Stars
- 371
- Forks
- 106
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rocky/python-xdis
-
Difficulty 4/5 3-5 days Newbie friendliness 43/100
rocky/python-xdis#185 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
rocky/python-xdis#93 · 6 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
rocky/python-xdis#63 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
rocky/python-xdis#58 · 2 comments · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
rocky/python-xdis#32 ·
All issues in rocky/python-xdis
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100