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

Makefile: Add easy support for sanitizers #298

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ferivoz
Copy link

@ferivoz ferivoz commented Dec 24, 2024

I have to make local adjustments in the code to use ASAN and UBSAN. I think that it's a compiler issue, but both commits should be beneficial for squashfs-tools regardless.

Adding ASAN and UBSAN is simple now:

$ make USE_SANITIZERS=1

Fixes an issue when compiling with sanitizers which otherwise
prevents mksquashfs from successful linking.

Added bonus is that visibility is reduced from a C point of view
as well. Simplifies code auditing.

Signed-off-by: Samanta Navarro <[email protected]>
This simplifies the addition of sanitizers to executables for easier
debugging.

Signed-off-by: Samanta Navarro <[email protected]>
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

Successfully merging this pull request may close these issues.

1 participant