-
Notifications
You must be signed in to change notification settings - Fork 27
Handle ELF binary with no program segments #140
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
base: master
Are you sure you want to change the base?
Conversation
a603c84
to
4b042e4
Compare
|
Hi @ffontaine and thanks for this PR. Could you provide a test binary and make a PR into https://github.com/Wenzel/checksec.py-test-binaries ? |
Hi, PR created: Wenzel/checksec.py-test-binaries#2 |
@ffontaine just merged your test binary |
Done |
Thanks ! |
I sent a new PR as pytest does not handle link on |
Do not return False for NX and No for RELRO when there is no program segments in the ELF binary file (e.g. kernel module). This is inspired from slimm609/checksec@29aea68 For RELRO, a new NA value is added For NX, True is returned to avoid changing NX type from boolean to string Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
CI is finally green :-) |
Do not return
False
for NX andNo
for RELRO when there is no program segments in the ELF binary file (e.g. kernel module).This is inspired from slimm609/checksec@29aea68
For RELRO, a new
NA
value is addedFor NX,
True
is returned to avoid changing NX type from boolean to string