Skip to content
Snippets Groups Projects
Commit 1465dd88 authored by an7s's avatar an7s
Browse files

P1 default policy is hard exit

Former-commit-id: c57b147c188b313fe22c2f2c6371d4304364cd0a
parent 2e2407c1
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ class PNOptions
canary_value_inited=false;
double_threshold=32*1024; // 32kb
spri_validate=false;
detection_policy=P_CONTROLLED_EXIT;
detection_policy=P_HARD_EXIT;
detection_exit_code=DEFAULT_DETECTION_EXIT_CODE;
}
......
......@@ -63,10 +63,10 @@ build_with_stack_protector()
protect()
{
do_p1 ./test_buffer_overflow.exe test_buffer_overflow.exe.p1.189
do_p1 ./test_buffer_overflow.exe.sp test_buffer_overflow.exe.sp.p1.189
do_p1 ./test_buffer_overflow.exe test_buffer_overflow.exe.p1.139 # new default is halt
do_p1 ./test_buffer_overflow.exe test_buffer_overflow.exe.p1.188 "--detection_policy exit --detection_exit_code 188"
do_p1 ./test_buffer_overflow.exe test_buffer_overflow.exe.p1.hlt "--detection_policy halt"
do_p1 ./test_buffer_overflow.exe.sp test_buffer_overflow.exe.sp.p1.189 "--detection_policy exit --detection_exit_code 189"
}
clean()
......@@ -93,7 +93,7 @@ main()
echo "Test functionality"
test_functional test_buffer_overflow.exe # unprotected - should pass!
test_functional test_buffer_overflow.exe.p1.189
test_functional test_buffer_overflow.exe.p1.139
test_functional test_buffer_overflow.exe.p1.188
test_functional test_buffer_overflow.exe.p1.hlt
test_functional test_buffer_overflow.exe.sp.p1.189
......@@ -103,7 +103,7 @@ main()
echo "Test detection"
passes=0
fails=0
test_detection test_buffer_overflow.exe.p1.189 189
test_detection test_buffer_overflow.exe.p1.139 139
test_detection test_buffer_overflow.exe.p1.188 188
test_detection test_buffer_overflow.exe.p1.hlt 139
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment