Commit 67353fe
committed
hardening
- Linux hardening flags (all builds):
-fstack-protector-strong - Stack canary protection
-fPIC - Position Independent Code
-Wl,-z,relro,-z,now - Full RELRO (Read-only GOT)
- Linux Release-only flags (via configurations.Release):
_FORTIFY_SOURCE=2 - Buffer overflow detection
-fcf-protection=full - Control Flow Integrity (Intel CET)
- macOS hardening flags (all builds):
-fstack-protector-strong in OTHER_CFLAGS
- Windows hardening flags (all builds):
BufferSecurityCheck: "true" (/GS)
ControlFlowGuard: "Guard" (/guard:cf)
/DYNAMICBASE - ASLR support
/NXCOMPAT - DEP/NX bit support
- Windows Release-only flags:
/sdl - Additional security checks1 parent 859747d commit 67353fe
1 file changed
Lines changed: 42 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
43 | 65 | | |
44 | 66 | | |
45 | 67 | | |
46 | 68 | | |
47 | 69 | | |
48 | 70 | | |
49 | 71 | | |
50 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
51 | 91 | | |
52 | 92 | | |
53 | 93 | | |
0 commit comments