Skip to content

Commit

Permalink
secure compile options added
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetmertguduz committed Jun 8, 2024
1 parent b15d335 commit 53dd9bf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,22 @@ target_compile_options(yiffy PRIVATE
-std=c17
-pthread
-fstrict-aliasing
-fstack-protector-strong
-fstack-protector-all
-fstack-clash-protection
-fcf-protection
-fno-strict-overflow
-fno-delete-null-pointer-checks
-fvisibility=hidden
-Wformat=2
-Wformat-security
-Wstrict-overflow=5
-Wcast-align
-D_FORTIFY_SOURCE=3
-fPIE
-pie
-Wl,-z,relro
-Wl,-z,now
-fno-plt
)

# C STANDARD
Expand Down

0 comments on commit 53dd9bf

Please sign in to comment.