Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
a966d422
Commit
a966d422
authored
Jan 20, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve ASAN instrumentation: TRASH
mark freed memory as not accessible, not merely undefined
parent
22ae3843
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
include/my_valgrind.h
include/my_valgrind.h
+4
-4
No files found.
include/my_valgrind.h
View file @
a966d422
...
@@ -39,9 +39,9 @@
...
@@ -39,9 +39,9 @@
#endif
/* HAVE_VALGRIND */
#endif
/* HAVE_VALGRIND */
#ifndef DBUG_OFF
#ifndef DBUG_OFF
#define TRASH_FILL(A,B,C) do {
memset(A, C, B); MEM_UNDEFINED(A, B); } while
(0)
#define TRASH_FILL(A,B,C) do {
MEM_UNDEFINED(A,B); memset(A,C,B); } while
(0)
#else
#else
#define TRASH_FILL(A,B,C)
do { MEM_CHECK_ADDRESSABLE(A,B);MEM_UNDEFINED(A,B);} while
(0)
#define TRASH_FILL(A,B,C)
do { MEM_UNDEFINED(A,B); } while
(0)
#endif
#endif
#define TRASH_ALLOC(A,B)
TRASH_FILL(A,B,0xA5
)
#define TRASH_ALLOC(A,B)
do { TRASH_FILL(A,B,0xA5); MEM_UNDEFINED(A,B); } while(0
)
#define TRASH_FREE(A,B)
TRASH_FILL(A,B,0x8F
)
#define TRASH_FREE(A,B)
do { TRASH_FILL(A,B,0x8F); MEM_NOACCESS(A,B); } while(0
)
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