| 1 |
support_stack_smashing_protector = cxx.has_argument('--param=ssp-buffer-size=4') |
| 2 |
if support_stack_smashing_protector |
| 3 |
add_project_arguments('--param=ssp-buffer-size=4', language: ['c', 'cpp']) |
| 4 |
endif |
| 5 |
|
| 6 |
hardening_features += [[support_stack_smashing_protector, 'Stack Smashing Protection']] |
| 7 |
summary('Stack Smashing Protection', support_stack_smashing_protector, bool_yn: true, section: 'Hardening') |
| 8 |
if support_stack_smashing_protector |
| 9 |
summary('SSP Buffer Size', 4, section: 'Hardening') |
| 10 |
endif |