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

Issue 10391178: 1. Enable large object pointer offset check in release build. (Closed)

Created:
8 years, 7 months ago by kaiwang
Modified:
8 years, 7 months ago
CC:
chromium-reviews, erikwright (departed), Aaron Boodman, mihaip-chromium-reviews_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

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". Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=138775

Patch Set 1 #

Patch Set 2 : #

Total comments: 30

Patch Set 3 : #

Total comments: 23

Patch Set 4 : #

Total comments: 11

Patch Set 5 : #

Total comments: 7

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -33 lines) Patch
M base/allocator/allocator.gyp View 1 2 3 4 3 chunks +21 lines, -4 lines 0 comments Download
M base/allocator/allocator_extension_thunks.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M base/allocator/allocator_shim.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M base/allocator/allocator_shim.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
A base/allocator/tcmalloc_unittest.cc View 1 2 3 4 5 1 chunk +81 lines, -0 lines 0 comments Download
M third_party/tcmalloc/chromium/src/internal_logging.h View 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/tcmalloc/chromium/src/tcmalloc.cc View 1 2 3 4 5 11 chunks +22 lines, -25 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
jar (doing other things)
https://chromiumcodereview.appspot.com/10391178/diff/4003/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): https://chromiumcodereview.appspot.com/10391178/diff/4003/base/allocator/allocator.gyp#newcode430 base/allocator/allocator.gyp:430: nit: remove line. https://chromiumcodereview.appspot.com/10391178/diff/4003/base/allocator/allocator.gyp#newcode525 base/allocator/allocator.gyp:525: # This is tricky.. ...
8 years, 7 months ago (2012-05-17 01:36:41 UTC) #1
kaiwang
https://chromiumcodereview.appspot.com/10391178/diff/4003/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): https://chromiumcodereview.appspot.com/10391178/diff/4003/base/allocator/allocator.gyp#newcode430 base/allocator/allocator.gyp:430: On 2012/05/17 01:36:41, jar wrote: > nit: remove line. ...
8 years, 7 months ago (2012-05-19 00:12:27 UTC) #2
rvargas (doing something else)
just some nits https://chromiumcodereview.appspot.com/10391178/diff/13003/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): https://chromiumcodereview.appspot.com/10391178/diff/13003/base/allocator/allocator.gyp#newcode431 base/allocator/allocator.gyp:431: # This library is linked in ...
8 years, 7 months ago (2012-05-19 01:08:04 UTC) #3
kaiwang
http://codereview.chromium.org/10391178/diff/13003/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): http://codereview.chromium.org/10391178/diff/13003/base/allocator/allocator.gyp#newcode431 base/allocator/allocator.gyp:431: # This library is linked in to libbase, allocator_unittests ...
8 years, 7 months ago (2012-05-21 18:11:42 UTC) #4
jar (doing other things)
The actual byte count in my concern below may not be a big deal.... but ...
8 years, 7 months ago (2012-05-21 18:44:10 UTC) #5
rvargas (doing something else)
http://codereview.chromium.org/10391178/diff/13003/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): http://codereview.chromium.org/10391178/diff/13003/base/allocator/allocator.gyp#newcode523 base/allocator/allocator.gyp:523: # use TCMalloc's logging.h, instead of the chromium base/logging.h ...
8 years, 7 months ago (2012-05-21 18:44:30 UTC) #6
gpike
https://chromiumcodereview.appspot.com/10391178/diff/17003/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): https://chromiumcodereview.appspot.com/10391178/diff/17003/base/allocator/allocator.gyp#newcode513 base/allocator/allocator.gyp:513: # Part of chromium code(instead of TCMalloc). We don't ...
8 years, 7 months ago (2012-05-21 19:04:58 UTC) #7
kaiwang
http://codereview.chromium.org/10391178/diff/13003/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): http://codereview.chromium.org/10391178/diff/13003/base/allocator/allocator.gyp#newcode523 base/allocator/allocator.gyp:523: # use TCMalloc's logging.h, instead of the chromium base/logging.h ...
8 years, 7 months ago (2012-05-21 22:21:41 UTC) #8
jar (doing other things)
LGTM with comment below. Thanks!!!! https://chromiumcodereview.appspot.com/10391178/diff/18002/third_party/tcmalloc/chromium/src/tcmalloc.cc File third_party/tcmalloc/chromium/src/tcmalloc.cc (right): https://chromiumcodereview.appspot.com/10391178/diff/18002/third_party/tcmalloc/chromium/src/tcmalloc.cc#newcode953 third_party/tcmalloc/chromium/src/tcmalloc.cc:953: static inline void* CheckedMallocResult(void ...
8 years, 7 months ago (2012-05-23 00:04:45 UTC) #9
kaiwang
Thanks for your reviews! I'll try to submit tonight http://codereview.chromium.org/10391178/diff/18002/third_party/tcmalloc/chromium/src/tcmalloc.cc File third_party/tcmalloc/chromium/src/tcmalloc.cc (right): http://codereview.chromium.org/10391178/diff/18002/third_party/tcmalloc/chromium/src/tcmalloc.cc#newcode953 third_party/tcmalloc/chromium/src/tcmalloc.cc:953: ...
8 years, 7 months ago (2012-05-23 00:15:07 UTC) #10
gpike
LGTM http://codereview.chromium.org/10391178/diff/18002/third_party/tcmalloc/chromium/src/internal_logging.h File third_party/tcmalloc/chromium/src/internal_logging.h (right): http://codereview.chromium.org/10391178/diff/18002/third_party/tcmalloc/chromium/src/internal_logging.h#newcode118 third_party/tcmalloc/chromium/src/internal_logging.h:118: if (!(cond)) { \ Do we have UNLIKELY ...
8 years, 7 months ago (2012-05-23 00:22:50 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaiwang@chromium.org/10391178/18003
8 years, 7 months ago (2012-05-23 05:20:45 UTC) #12
commit-bot: I haz the power
Try job failure for 10391178-18003 (retry) (retry) on win_rel for step "runhooks". It's a second ...
8 years, 7 months ago (2012-05-23 10:35:34 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaiwang@chromium.org/10391178/18003
8 years, 7 months ago (2012-05-24 05:24:33 UTC) #14
commit-bot: I haz the power
8 years, 7 months ago (2012-05-24 11:13:26 UTC) #15
Change committed as 138775

Powered by Google App Engine
This is Rietveld 408576698