Skip to content

Conversation

disconnect3d
Copy link
Contributor

This commit fixes the typo in -fsanitize=safe-stack flag. The flag value is safe-stack and not safestack as it was used in the project.

See:

root@6e0967fe1290:/# clang --version
Debian clang version 15.0.1-++20220921072637+b73d2c8c720a-1~exp1~20220921072648.64
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-15/bin
root@6e0967fe1290:/# cat a.c
int main() {}
root@6e0967fe1290:/# clang -fsanitize=safe-stack a.c
root@6e0967fe1290:/# clang -fsanitize=safestack a.c
clang: error: unsupported argument 'safestack' to option '-fsanitize='

This commit fixes the typo in `-fsanitize=safe-stack` flag. The flag value is `safe-stack` and not `safestack` as it was used in the project.

See:
```
root@6e0967fe1290:/# clang --version
Debian clang version 15.0.1-++20220921072637+b73d2c8c720a-1~exp1~20220921072648.64
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-15/bin
root@6e0967fe1290:/# cat a.c
int main() {}
root@6e0967fe1290:/# clang -fsanitize=safe-stack a.c
root@6e0967fe1290:/# clang -fsanitize=safestack a.c
clang: error: unsupported argument 'safestack' to option '-fsanitize='
```
Copy link
Collaborator

@BurningEnlightenment BurningEnlightenment left a comment

Choose a reason for hiding this comment

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

Good catch, thanks!

set(SAFESTACK_COMPILE_FLAGS -fsanitize=safestack)
set(SAFESTACKLINK_FLAGS -fsanitize=safestack)
set(SAFESTACK_COMPILE_FLAGS -fsanitize=safe-stack)
set(SAFESTACKLINK_FLAGS -fsanitize=safe-stack)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@ned14 we should probably fix the typo in SAFESTACKLINK_FLAGS/introduce the correct spelling and remove the broken one in a few months. However, I cannot estimate how far usage of this variable has spread.

@BurningEnlightenment BurningEnlightenment merged commit 82fbebd into ned14:master Dec 27, 2022
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.

2 participants