Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
1465dd88
Commit
1465dd88
authored
7 years ago
by
an7s
Browse files
Options
Downloads
Patches
Plain Diff
P1 default policy is hard exit
Former-commit-id: c57b147c188b313fe22c2f2c6371d4304364cd0a
parent
2e2407c1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/transforms/globals.h
+1
-1
1 addition, 1 deletion
tools/transforms/globals.h
tools/transforms/tests/test_buffer_overflow.sh
+4
-4
4 additions, 4 deletions
tools/transforms/tests/test_buffer_overflow.sh
with
5 additions
and
5 deletions
tools/transforms/globals.h
+
1
−
1
View file @
1465dd88
...
...
@@ -65,7 +65,7 @@ class PNOptions
canary_value_inited
=
false
;
double_threshold
=
32
*
1024
;
// 32kb
spri_validate
=
false
;
detection_policy
=
P_
CONTROLLE
D_EXIT
;
detection_policy
=
P_
HAR
D_EXIT
;
detection_exit_code
=
DEFAULT_DETECTION_EXIT_CODE
;
}
...
...
This diff is collapsed.
Click to expand it.
tools/transforms/tests/test_buffer_overflow.sh
+
4
−
4
View file @
1465dd88
...
...
@@ -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.1
8
9
test_functional test_buffer_overflow.exe.p1.1
3
9
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.1
8
9 1
8
9
test_detection test_buffer_overflow.exe.p1.1
3
9 1
3
9
test_detection test_buffer_overflow.exe.p1.188 188
test_detection test_buffer_overflow.exe.p1.hlt 139
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment