Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(394)

Unified Diff: asan/asan_rtl.cc

Issue 5448043: Refactor poisoning done inside ASan RTL (Closed) Base URL: http://address-sanitizer.googlecode.com/svn/trunk/
Patch Set: Created 12 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« asan/asan_mapping.h ('K') | « asan/asan_poisoning.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: asan/asan_rtl.cc
===================================================================
--- asan/asan_rtl.cc (revision 1108)
+++ asan/asan_rtl.cc (working copy)
@@ -464,9 +464,7 @@
CHECK(curr_thread);
uintptr_t top = curr_thread->stack_top();
uintptr_t bottom = ((uintptr_t)&local_stack - kPageSize) & ~(kPageSize-1);
- uintptr_t top_shadow = MemToShadow(top);
- uintptr_t bot_shadow = MemToShadow(bottom);
- real_memset((void*)bot_shadow, 0, top_shadow - bot_shadow);
+ PoisonShadow(bottom, top - bottom, 0);
}
extern "C" void WRAP(longjmp)(void *env, int val) {
« asan/asan_mapping.h ('K') | « asan/asan_poisoning.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b