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

Issue 2957583004: Check for integer overflow in allocations. (Closed)

Created:
3 years, 6 months ago by palmer
Modified:
3 years, 5 months ago
Reviewers:
haraken
CC:
Mads Ager (chromium), blink-reviews, chromium-reviews, haraken, kinuko+watch, kouhei+heap_chromium.org, oilpan-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Check for integer overflow in allocations. BUG=669751 Review-Url: https://codereview.chromium.org/2957583004 Cr-Commit-Position: refs/heads/master@{#482392} Committed: https://chromium.googlesource.com/chromium/src/+/66d7c69f7d8c8d63138066ad74a89524f3a4e250

Patch Set 1 #

Patch Set 2 : CSSSelectorList.cpp needs a check, too. #

Total comments: 2

Patch Set 3 : Rename the function to |ComputeAllocationSize|. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -11 lines) Patch
M third_party/WebKit/Source/core/css/CSSSelectorList.cpp View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/HeapTerminatedArray.h View 1 2 2 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/wtf/TerminatedArray.h View 1 2 1 chunk +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/wtf/allocator/Partitions.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
palmer
Should be nice and simple. We may need to audit for similar call sites.
3 years, 6 months ago (2017-06-23 23:09:23 UTC) #2
haraken
LGTM! How did you find these call sites?
3 years, 6 months ago (2017-06-24 09:55:36 UTC) #9
sof
https://codereview.chromium.org/2957583004/diff/20001/third_party/WebKit/Source/core/css/CSSSelectorList.cpp File third_party/WebKit/Source/core/css/CSSSelectorList.cpp (right): https://codereview.chromium.org/2957583004/diff/20001/third_party/WebKit/Source/core/css/CSSSelectorList.cpp#newcode50 third_party/WebKit/Source/core/css/CSSSelectorList.cpp:50: WTF::Partitions::GetAllocationSize(sizeof(CSSSelector), length), This is reversing the arguments from the ...
3 years, 6 months ago (2017-06-25 06:31:31 UTC) #10
palmer
> How did you find these call sites? `grep -ri alloc *` usually turns up ...
3 years, 5 months ago (2017-06-26 18:43:08 UTC) #11
palmer
https://codereview.chromium.org/2957583004/diff/20001/third_party/WebKit/Source/core/css/CSSSelectorList.cpp File third_party/WebKit/Source/core/css/CSSSelectorList.cpp (right): https://codereview.chromium.org/2957583004/diff/20001/third_party/WebKit/Source/core/css/CSSSelectorList.cpp#newcode50 third_party/WebKit/Source/core/css/CSSSelectorList.cpp:50: WTF::Partitions::GetAllocationSize(sizeof(CSSSelector), length), Changed the name to |ComputeAllocationSize| and switched ...
3 years, 5 months ago (2017-06-26 18:55:13 UTC) #12
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/2957583004/40001
3 years, 5 months ago (2017-06-26 18:56:09 UTC) #15
commit-bot: I haz the power
3 years, 5 months ago (2017-06-26 20:56:45 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/66d7c69f7d8c8d63138066ad74a8...

Powered by Google App Engine
This is Rietveld 408576698