Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
security
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
CodeLinaro
public-release-test-restored
platform
tools
security
Commits
3c5ee5d6
Commit
3c5ee5d6
authored
6 years ago
by
TreeHugger Robot
Committed by
Android (Google) Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix sanitizer-status for hwasan builds"
parents
4402d5d4
056f4c06
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sanitizer-status/sanitizer-status.c
+1
-1
1 addition, 1 deletion
sanitizer-status/sanitizer-status.c
sanitizer-status/sanitizer-status.go
+3
-0
3 additions, 0 deletions
sanitizer-status/sanitizer-status.go
with
4 additions
and
1 deletion
sanitizer-status/sanitizer-status.c
+
1
−
1
View file @
3c5ee5d6
...
...
@@ -143,7 +143,7 @@ int sanitizer_status(int argc, const char** argv) {
if
(
test_everything
||
have_option
(
"asan"
,
argv
,
argc
))
{
int
asan_failures
=
0
;
#if
n
def
ANDROID_SANITIZE_ADDRESS
#if
!
def
ined(ANDROID_SANITIZE_ADDRESS) && !defined(
ANDROID_SANITIZE_
HW
ADDRESS
)
asan_failures
+=
1
;
printf
(
"ASAN: Compiler flags failed!
\n
"
);
#endif
...
...
This diff is collapsed.
Click to expand it.
sanitizer-status/sanitizer-status.go
+
3
−
0
View file @
3c5ee5d6
...
...
@@ -28,6 +28,9 @@ func loadHook(ctx android.LoadHookContext) {
if
android
.
InList
(
"address"
,
sanitizers
)
{
p
.
Cflags
=
append
(
p
.
Cflags
,
"-DANDROID_SANITIZE_ADDRESS=1"
)
}
if
android
.
InList
(
"hwaddress"
,
sanitizers
)
{
p
.
Cflags
=
append
(
p
.
Cflags
,
"-DANDROID_SANITIZE_HWADDRESS=1"
)
}
if
android
.
InList
(
"coverage"
,
sanitizers
)
{
p
.
Cflags
=
append
(
p
.
Cflags
,
"-DANDROID_SANITIZE_COVERAGE=1"
)
}
...
...
This diff is collapsed.
Click to expand it.
CodeLinaro
@codelinaro
mentioned in commit
c5257c3e
·
9 months ago
mentioned in commit
c5257c3e
mentioned in commit c5257c3eb92ec9a03dfb8c2fd34e2f45e247f43a
Toggle commit list
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