Skip to content

Fixes and updates to make the module work #8

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

razvand
Copy link

@razvand razvand commented Dec 26, 2024

Add configuration fixes to make the attack_surface_approximation module work. Improve instructions on using the module.

The `GhidraDecompilation` class is not used anywhere. Remove it from the
`configuration.py` file.

Signed-off-by: Razvan Deaconescu <razvan.deaconescu@upb.ro>
There may be cases when there is a missing symlink or a man page file
is not accessible. Handle exception of opening that file: do nothing,
return from the generator function.

Signed-off-by: Razvan Deaconescu <razvan.deaconescu@upb.ro>
Add reference to the `pyprojects.toml` file in the `commons` repository.

The `pyelftools` v0.28 package version results in build error (unable to
locate `RelrRelocationSection`). It's not part of the `relocation.py`
file: https://github.com/eliben/pyelftools/blob/v0.28/elftools/elf/relocation.py

Version v0.29 of `pyelftools` defines `RelrRelocationSection`: https://github.com/eliben/pyelftools/blob/v0.29/elftools/elf/relocation.py#L110

Update the version of `pyelftools` in `pyprojects.toml`. Meaning using
the line below in `pyprojects.toml`:

```
pyelftools = "^0.29"
```

Signed-off-by: Razvan Deaconescu <razvan.deaconescu@upb.ro>
It is generally recommended to include `poetry.lock` to the repository.
This helps with using the same package versions that are known to work.

The absence of the `poetry.lock` file will force Poetry to generate a
new one, that may result in package versions that fail to wor

Signed-off-by: Razvan Deaconescu <razvan.deaconescu@upb.ro>
@razvand razvand added the enhancement New feature or request label Dec 26, 2024
@razvand razvand self-assigned this Dec 26, 2024
@razvand razvand mentioned this pull request Dec 26, 2024
Copy link

@ClaraStefania ClaraStefania left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggested a few small changes, one that solves an error and two in the README file.

@razvand razvand force-pushed the razvand/fix/fix-setup branch 2 times, most recently from 9abf9d7 to 045bb24 Compare December 27, 2024 14:07
Improve instructions in `README.md` on installing and setting up the
module. Add detailed instructions, fix commands where required,
reference the `dataset` and `commons` modules.

Signed-off-by: Razvan Deaconescu <razvan.deaconescu@upb.ro>
Use version `^24.3.0` to fix vulnerability in the dependabot alert #1
(on GitHub).

Signed-off-by: Razvan Deaconescu <razvan.deaconescu@upb.ro>
A `return` line is present by mistake outside the scope of a function.
Remove it.

Signed-off-by: Razvan Deaconescu <razvan.deaconescu@upb.ro>
@razvand razvand force-pushed the razvand/fix/fix-setup branch from 045bb24 to 686d0f7 Compare December 27, 2024 14:14
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
```

This is an problem that may occur in certain situations, preventing Poetry from getting packages.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This is an problem that may occur in certain situations, preventing Poetry from getting packages.
This is a problem that may occur in certain situations, preventing Poetry from getting packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants