Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swiftshader
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
swiftshader
Commits
0aa3f710
Commit
0aa3f710
authored
Jul 21, 2016
by
Thomas Lively
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Subzero: small cleanups
BUG=
https://bugs.chromium.org/p/nativeclient/issues/detail?id=4374
R=kschimpf@google.com Review URL:
https://codereview.chromium.org/2165393002
.
parent
0c704176
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
szrt_asan.c
runtime/szrt_asan.c
+1
-1
errors.ll
tests_lit/asan_tests/errors.ll
+6
-6
realloc_shrink.ll
tests_lit/asan_tests/realloc_shrink.ll
+1
-1
wideloads.ll
tests_lit/asan_tests/wideloads.ll
+2
-2
No files found.
runtime/szrt_asan.c
View file @
0aa3f710
...
...
@@ -196,7 +196,7 @@ void *__asan_realloc(char *ptr, size_t size) {
void
__asan_free
(
char
*
ptr
)
{
DUMP
(
"free() called on %p
\n
"
,
ptr
);
void
*
rz_left
,
*
rz_right
;
char
*
rz_left
,
*
rz_right
;
__asan_get_redzones
(
ptr
,
&
rz_left
,
&
rz_right
);
size_t
rz_right_size
=
*
(
size_t
*
)
rz_right
;
__asan_unpoison
(
rz_left
,
RZ_SIZE
);
...
...
tests_lit/asan_tests/errors.ll
View file @
0aa3f710
...
...
@@ -4,32 +4,32 @@
; check with a one off the end local access
; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \
; RUN: --fsanitize-address --sz=
"-allow-externally-defined-symbols"
\
; RUN: --fsanitize-address --sz=
-allow-externally-defined-symbols
\
; RUN: %t.pexe -o %t && %t 2>&1 | FileCheck %s
; check with a many off the end local access
; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \
; RUN: --fsanitize-address --sz=
"-allow-externally-defined-symbols"
\
; RUN: --fsanitize-address --sz=
-allow-externally-defined-symbols
\
; RUN: %t.pexe -o %t && %t 1 2>&1 | FileCheck %s
; check with a one before the front local access
; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \
; RUN: --fsanitize-address --sz=
"-allow-externally-defined-symbols"
\
; RUN: --fsanitize-address --sz=
-allow-externally-defined-symbols
\
; RUN: %t.pexe -o %t && %t 1 2 2>&1 | FileCheck %s
; check with a one off the end global access
; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \
; RUN: --fsanitize-address --sz=
"-allow-externally-defined-symbols"
\
; RUN: --fsanitize-address --sz=
-allow-externally-defined-symbols
\
; RUN: %t.pexe -o %t && %t 1 2 3 2>&1 | FileCheck %s
; check with a many off the end global access
; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \
; RUN: --fsanitize-address --sz=
"-allow-externally-defined-symbols"
\
; RUN: --fsanitize-address --sz=
-allow-externally-defined-symbols
\
; RUN: %t.pexe -o %t && %t 1 2 3 4 2>&1 | FileCheck %s
; check with a one before the front global access
; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \
; RUN: --fsanitize-address --sz=
"-allow-externally-defined-symbols"
\
; RUN: --fsanitize-address --sz=
-allow-externally-defined-symbols
\
; RUN: %t.pexe -o %t && %t 1 2 3 4 5 2>&1 | FileCheck %s
...
...
tests_lit/asan_tests/realloc_shrink.ll
View file @
0aa3f710
...
...
@@ -3,7 +3,7 @@
; REQUIRES: no_minimal_build
; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \
; RUN: --fsanitize-address --sz=
"-allow-externally-defined-symbols"
\
; RUN: --fsanitize-address --sz=
-allow-externally-defined-symbols
\
; RUN: %t.pexe -o %t && %t 2>&1 | FileCheck %s
...
...
tests_lit/asan_tests/wideloads.ll
View file @
0aa3f710
...
...
@@ -4,12 +4,12 @@
; check for wide load exception
; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \
; RUN: --fsanitize-address --sz=
"-allow-externally-defined-symbols"
\
; RUN: --fsanitize-address --sz=
-allow-externally-defined-symbols
\
; RUN: %t.pexe -o %t && %t | FileCheck %s --check-prefix=WIDE --allow-empty
; check for error reporting
; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \
; RUN: --fsanitize-address --sz=
"-allow-externally-defined-symbols"
\
; RUN: --fsanitize-address --sz=
-allow-externally-defined-symbols
\
; RUN: %t.pexe -o %t && %t 1 2>&1 | FileCheck %s --check-prefix=NOWIDE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment