summaryrefslogtreecommitdiffstats
path: root/base/allocator/allocator_extension_thunks.cc
diff options
context:
space:
mode:
authorkaiwang@chromium.org <kaiwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-24 11:13:23 +0000
committerkaiwang@chromium.org <kaiwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-24 11:13:23 +0000
commita849dc1cd365ac9f21233b9950bb39860c39a867 (patch)
tree6af6115f10d1fd5ab950f06859d3f9a1da5a22fd /base/allocator/allocator_extension_thunks.cc
parent09096e0aa7bd96a31389825152d9547c56459273 (diff)
downloadchromium_src-a849dc1cd365ac9f21233b9950bb39860c39a867.zip
chromium_src-a849dc1cd365ac9f21233b9950bb39860c39a867.tar.gz
chromium_src-a849dc1cd365ac9f21233b9950bb39860c39a867.tar.bz2
1. Enable large object pointer offset check in release build.
Following code will now cause a check error: char* p = reinterpret_cast<char*>(malloc(kMaxSize + 1)); free(p + 1); 2. Remove a duplicated error reporting function "DieFromBadFreePointer", can use "InvalidGetAllocatedSize". Review URL: https://chromiumcodereview.appspot.com/10391178 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138775 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/allocator/allocator_extension_thunks.cc')
-rw-r--r--base/allocator/allocator_extension_thunks.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/base/allocator/allocator_extension_thunks.cc b/base/allocator/allocator_extension_thunks.cc
index f8985a2..0e97f6a 100644
--- a/base/allocator/allocator_extension_thunks.cc
+++ b/base/allocator/allocator_extension_thunks.cc
@@ -11,11 +11,11 @@ namespace allocator {
namespace thunks {
// This slightly odd translation unit exists because of the peculularity of how
-// allocator_unittests works on windows. That target has to perform
+// allocator_unittests work on windows. That target has to perform
// tcmalloc-specific initialization on windows, but it cannot depend on base
-// otherwise. This target sits in the middle - both libbase and
-// allocator_unittests can depend on it.
-// This file can't depend on anything else in base, including logging.
+// otherwise. This target sits in the middle - base and allocator_unittests
+// can depend on it. This file can't depend on anything else in base, including
+// logging.
static GetStatsFunction* g_get_stats_function = NULL;
static ReleaseFreeMemoryFunction* g_release_free_memory_function = NULL;