Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Unified Diff: syzygy/instrument/transforms/asan_transform.cc

Issue 2321423002: Merge the latest changes to master in the vs2015 branch. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « syzygy/build/RELEASE-NOTES.TXT ('k') | syzygy/instrument/transforms/asan_transform_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: syzygy/instrument/transforms/asan_transform.cc
diff --git a/syzygy/instrument/transforms/asan_transform.cc b/syzygy/instrument/transforms/asan_transform.cc
index d777afe71ab3361571472b088f67e65e1e259f06..4ea153b1ef0faff70745901f9eb5ad3a32112ab6 100644
--- a/syzygy/instrument/transforms/asan_transform.cc
+++ b/syzygy/instrument/transforms/asan_transform.cc
@@ -153,8 +153,9 @@ bool IsInstrumentable(const _Operand& op) {
bool IsSpecialInstruction(uint16_t opcode) {
switch (opcode) {
case I_CMPS:
- case I_STOS:
+ case I_LODS:
case I_MOVS:
+ case I_STOS:
return true;
default:
@@ -632,7 +633,7 @@ bool ImportAsanCheckAccessHooks(
}
// Import the hooks for string/prefix memory accesses.
- const _InstructionType strings[] = { I_CMPS, I_MOVS, I_STOS };
+ const _InstructionType strings[] = {I_CMPS, I_LODS, I_MOVS, I_STOS};
int strings_length = sizeof(strings)/sizeof(_InstructionType);
for (int access_size = 1; access_size <= 4; access_size *= 2) {
« no previous file with comments | « syzygy/build/RELEASE-NOTES.TXT ('k') | syzygy/instrument/transforms/asan_transform_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698