Commit graph

12 commits

Author SHA1 Message Date
Henrique Borges
ac5b102245 Add static compilation rule to makefile 2022-12-03 18:52:46 -03:00
sw1tchbl4d3
d09a59a77e Add own readpassphrase function
This removes the libbsd dependency.
Fixed #10.
2022-05-05 08:21:48 +02:00
sw1tchbl4d3
41dfdb321f Remove LSAN from the debug build
For some unknown reason LSAN catches a SIGSEGV (rdo.c:45) when enabled,
but removing it also removes the supposed SIGSEGV it catches.
To repro, build the earlier build with LSAN, and enter a file that
doesnt exist.
As long as I don't know why LSAN thinks this simple error message causes
a segmentation fault, I will remove it.
2022-03-08 16:51:04 +01:00
sw1tchbl4d3
9395a6ca7e Fix debug build
GCC doesnt want to compile a binary with fortify when optimizations are
disabled, so we move the fortification process into the release flags.
2022-03-08 16:26:18 +01:00
sw1tchbl4d3
f1b75ffe48 Tighten permissions for the config file 2022-02-09 19:48:32 +01:00
sw1tchbl4d3
97bb40e37b Refactor Makefile
These changes make rdo build on my rpi, probably because this specific
GCC version requires arguments in the order we now supply.

We also disable ASAN in the debug build (for now), as it seems to cause
a segfault on my rpi.
2022-02-09 19:37:43 +01:00
sw1tchbl4d3
a30dffcf5d Add -fsanitize=undefined to Makefile
Now we also check for undefined behaviour in our debug build.
2021-07-29 17:28:17 +02:00
sw1tchbl4d3
1bb71b46cc Build debug build with fsanitize=leak,address
This option warns us if something leaks memory
or other errors in memory occur.
2021-07-18 23:31:53 +02:00
sw1tchbl4d3
5443db5502 Various Makefile additions
We now have a normal and a debug build, both of which
have full RELRO, appropriate handling of warnings and
the default build has D_FORTIFY_SOURCE set to 2.
2021-07-14 06:13:34 +02:00
sw1tchbl4d3
f5bfafe269 Add config for rdo
This is needed for #1.
2021-07-13 23:21:34 +02:00
sw1tchbl4d3
336221e5e2 Get passphrase from TTY
This is required for #1.
2021-07-13 22:23:27 +02:00
sw1tchbl4d3
f63e1b660a First Commit 2021-07-13 21:33:12 +02:00