summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authortimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-22 16:49:41 +0000
committertimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-22 16:49:41 +0000
commiteae8081acbe5261ab9fecabe975c787c4df8d1bf (patch)
tree92f1381c5c941b9766d86424b9070d0d1cbb60b1 /base
parentea1cc2cd3e4abc83475a3b92956fc036c14444f4 (diff)
downloadchromium_src-eae8081acbe5261ab9fecabe975c787c4df8d1bf.zip
chromium_src-eae8081acbe5261ab9fecabe975c787c4df8d1bf.tar.gz
chromium_src-eae8081acbe5261ab9fecabe975c787c4df8d1bf.tar.bz2
Re-enable positive OOB write tests under Dr. Memory and add the suppression for these tests.
TEST=DrM bot shouldn't be affected after landing this. Before DrM r175 it would crash BUG=http://code.google.com/p/drmemory/issues/detail?id=51 TBR=bruening Review URL: http://codereview.chromium.org/6538092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75598 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/tools_sanity_unittest.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/base/tools_sanity_unittest.cc b/base/tools_sanity_unittest.cc
index 779c236..e1e41a6 100644
--- a/base/tools_sanity_unittest.cc
+++ b/base/tools_sanity_unittest.cc
@@ -61,16 +61,8 @@ void MakeSomeErrors(char *ptr, size_t size) {
ReadUninitializedValue(ptr);
ReadValueOutOfArrayBoundsLeft(ptr);
ReadValueOutOfArrayBoundsRight(ptr, size);
-
- // We execute this function only under memory checking tools -
- // Valgrind on Linux and Mac, Dr. Memory on Windows.
- // Currently writing values out-of-bounds makes Dr. Memory a bit crazy when
- // this code is linked with /MTd, so skip these writes on Windows.
- // See http://code.google.com/p/drmemory/issues/detail?id=51
-#if !defined(OS_WIN)
WriteValueOutOfArrayBoundsLeft(ptr);
WriteValueOutOfArrayBoundsRight(ptr, size);
-#endif
}
} // namespace