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

Issue 2182873003: Add bounds check for negative ctrlsrc->z. (Closed)

Created:
4 years, 4 months ago by rickyz (no longer on Chrome)
Modified:
4 years, 4 months ago
CC:
chromium-reviews, Will Harris
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add bounds check for negative ctrlsrc->z. Also adds some basic integer overflow checking and fixes undefined pointer arithmetic in preexisting bounds checks. BUG=631375 Committed: https://crrev.com/df3791021e31e0b99c5a64fea1161d0cf8aad5df Cr-Commit-Position: refs/heads/master@{#414156}

Patch Set 1 #

Patch Set 2 : Add check on cblen. #

Patch Set 3 : Address signed comparison warnings. #

Total comments: 8

Patch Set 4 : Oops. #

Patch Set 5 : More build fixes. #

Patch Set 6 : Add regression test with rolled back mbspatch.cc. #

Patch Set 7 : Re-add mbspatch.cc with more MSVC fixes. Sorry for the noise, don't have a windows build env. #

Patch Set 8 : Try again with more negative offset. #

Patch Set 9 : Last attempt before bed #

Patch Set 10 : I give up. #

Patch Set 11 : Add fix again. #

Total comments: 4

Patch Set 12 : Respond to comnets. #

Patch Set 13 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -11 lines) Patch
M chrome/installer/setup/archive_patch_helper_unittest.cc View 1 2 3 4 5 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/test/data/installer/bin.old View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/installer/misaligned_cblen.diff View 1 2 3 4 5 Binary file 0 comments Download
A chrome/test/data/installer/negative_seek.diff View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
M third_party/bspatch/README.chromium View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M third_party/bspatch/mbspatch.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +39 lines, -11 lines 0 comments Download

Messages

Total messages: 58 (39 generated)
rickyz (no longer on Chrome)
4 years, 4 months ago (2016-07-27 03:30:12 UTC) #8
kcwu
https://codereview.chromium.org/2182873003/diff/40001/third_party/bspatch/mbspatch.cc File third_party/bspatch/mbspatch.cc (right): https://codereview.chromium.org/2182873003/diff/40001/third_party/bspatch/mbspatch.cc#newcode85 third_party/bspatch/mbspatch.cc:85: size_t size = static_cast<size_t>(hs.st_size); size -= sizeof(MBSPatchHeader); https://codereview.chromium.org/2182873003/diff/40001/third_party/bspatch/mbspatch.cc#newcode86 third_party/bspatch/mbspatch.cc:86: ...
4 years, 4 months ago (2016-07-27 04:14:36 UTC) #11
rickyz (no longer on Chrome)
https://codereview.chromium.org/2182873003/diff/40001/third_party/bspatch/mbspatch.cc File third_party/bspatch/mbspatch.cc (right): https://codereview.chromium.org/2182873003/diff/40001/third_party/bspatch/mbspatch.cc#newcode85 third_party/bspatch/mbspatch.cc:85: size_t size = static_cast<size_t>(hs.st_size); On 2016/07/27 04:14:36, kcwu wrote: ...
4 years, 4 months ago (2016-07-27 04:24:14 UTC) #14
kcwu
lgtm
4 years, 4 months ago (2016-07-27 04:35:20 UTC) #15
Will Harris
where is the actual fix?
4 years, 4 months ago (2016-07-27 16:40:20 UTC) #26
rickyz (no longer on Chrome)
On 2016/07/27 16:40:20, Will Harris wrote: > where is the actual fix? Sorry for the ...
4 years, 4 months ago (2016-07-27 21:58:21 UTC) #29
rickyz (no longer on Chrome)
On 2016/07/27 16:40:20, Will Harris wrote: > where is the actual fix? Sorry for the ...
4 years, 4 months ago (2016-07-27 21:58:22 UTC) #30
huangs
Just a couple of comments. https://codereview.chromium.org/2182873003/diff/200001/third_party/bspatch/mbspatch.cc File third_party/bspatch/mbspatch.cc (right): https://codereview.chromium.org/2182873003/diff/200001/third_party/bspatch/mbspatch.cc#newcode32 third_party/bspatch/mbspatch.cc:32: */ Update ChangeLog? https://codereview.chromium.org/2182873003/diff/200001/third_party/bspatch/mbspatch.cc#newcode125 ...
4 years, 4 months ago (2016-07-27 22:39:17 UTC) #33
rickyz (no longer on Chrome)
https://codereview.chromium.org/2182873003/diff/200001/third_party/bspatch/mbspatch.cc File third_party/bspatch/mbspatch.cc (right): https://codereview.chromium.org/2182873003/diff/200001/third_party/bspatch/mbspatch.cc#newcode32 third_party/bspatch/mbspatch.cc:32: */ On 2016/07/27 22:39:16, huangs wrote: > Update ChangeLog? ...
4 years, 4 months ago (2016-07-27 22:50:27 UTC) #35
rickyz (no longer on Chrome)
Friendly ping, does this look good to land?
4 years, 4 months ago (2016-08-01 23:51:21 UTC) #40
rickyz (no longer on Chrome)
On 2016/08/01 at 23:51:21, rickyz wrote: > Friendly ping, does this look good to land? ...
4 years, 4 months ago (2016-08-12 17:36:59 UTC) #41
kcwu
On 2016/08/12 17:36:59, rickyz wrote: > On 2016/08/01 at 23:51:21, rickyz wrote: > > Friendly ...
4 years, 4 months ago (2016-08-17 11:31:32 UTC) #42
rickyz (no longer on Chrome)
On 2016/08/17 at 11:31:32, kcwu wrote: > On 2016/08/12 17:36:59, rickyz wrote: > > On ...
4 years, 4 months ago (2016-08-17 19:05:51 UTC) #45
rickyz (no longer on Chrome)
Adding jochen@ for third_party/ and chrome/ OWNERS, thanks!
4 years, 4 months ago (2016-08-17 20:51:14 UTC) #49
jochen (gone - plz use gerrit)
lgtm
4 years, 4 months ago (2016-08-23 12:54:12 UTC) #50
rickyz (no longer on Chrome)
Thanks!
4 years, 4 months ago (2016-08-24 20:16:27 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2182873003/240001
4 years, 4 months ago (2016-08-24 20:17:00 UTC) #54
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 4 months ago (2016-08-24 21:45:32 UTC) #56
commit-bot: I haz the power
4 years, 4 months ago (2016-08-24 21:47:11 UTC) #58
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/df3791021e31e0b99c5a64fea1161d0cf8aad5df
Cr-Commit-Position: refs/heads/master@{#414156}

Powered by Google App Engine
This is Rietveld 408576698