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

Issue 1058533007: Fix a few potential integer negation overflows (Closed)

Created:
5 years, 8 months ago by Jakob Kummerow
Modified:
5 years, 8 months ago
Reviewers:
Sven Panne
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fix a few potential integer negation overflows AFAICT none of these can actually be triggered currently; but it's still good to harden the code a little. Committed: https://crrev.com/e02807ee8a6a254c694da007420ef78b40ac9f62 Cr-Commit-Position: refs/heads/master@{#27848}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -11 lines) Patch
M src/arm/assembler-arm.cc View 3 chunks +3 lines, -0 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/arm64/lithium-codegen-arm64.cc View 1 chunk +1 line, -1 line 3 comments Download
M src/deoptimizer.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/hydrogen-dehoist.cc View 1 chunk +7 lines, -6 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 chunk +3 lines, -1 line 0 comments Download
M src/mips/lithium-codegen-mips.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/mips64/lithium-codegen-mips64.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 11 (2 generated)
Jakob Kummerow
PTAL.
5 years, 8 months ago (2015-04-15 08:57:32 UTC) #2
Sven Panne
https://codereview.chromium.org/1058533007/diff/1/src/arm64/lithium-codegen-arm64.cc File src/arm64/lithium-codegen-arm64.cc (right): https://codereview.chromium.org/1058533007/diff/1/src/arm64/lithium-codegen-arm64.cc#newcode4319 src/arm64/lithium-codegen-arm64.cc:4319: DCHECK((right > -kMaxInt) && (right < kMaxInt)); Hmmmm, why ...
5 years, 8 months ago (2015-04-15 12:33:33 UTC) #3
Jakob Kummerow
https://codereview.chromium.org/1058533007/diff/1/src/arm64/lithium-codegen-arm64.cc File src/arm64/lithium-codegen-arm64.cc (right): https://codereview.chromium.org/1058533007/diff/1/src/arm64/lithium-codegen-arm64.cc#newcode4319 src/arm64/lithium-codegen-arm64.cc:4319: DCHECK((right > -kMaxInt) && (right < kMaxInt)); On 2015/04/15 ...
5 years, 8 months ago (2015-04-15 12:40:24 UTC) #4
Sven Panne
https://codereview.chromium.org/1058533007/diff/1/src/arm64/lithium-codegen-arm64.cc File src/arm64/lithium-codegen-arm64.cc (right): https://codereview.chromium.org/1058533007/diff/1/src/arm64/lithium-codegen-arm64.cc#newcode4319 src/arm64/lithium-codegen-arm64.cc:4319: DCHECK((right > -kMaxInt) && (right < kMaxInt)); On 2015/04/15 ...
5 years, 8 months ago (2015-04-15 13:02:41 UTC) #5
Jakob Kummerow
On 2015/04/15 13:02:41, Sven Panne wrote: > Uh, oh... Looking at LChunkBuilder::DoMul for ARM64 (only ...
5 years, 8 months ago (2015-04-15 13:14:49 UTC) #6
Sven Panne
lgtm
5 years, 8 months ago (2015-04-15 13:24:04 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1058533007/1
5 years, 8 months ago (2015-04-15 13:25:44 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 8 months ago (2015-04-15 13:55:34 UTC) #10
commit-bot: I haz the power
5 years, 8 months ago (2015-04-15 13:55:44 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/e02807ee8a6a254c694da007420ef78b40ac9f62
Cr-Commit-Position: refs/heads/master@{#27848}

Powered by Google App Engine
This is Rietveld 408576698