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

Issue 91043003: Simplify some argument checking for socket calls (Closed)

Created:
7 years ago by Søren Gjesse
Modified:
7 years ago
Reviewers:
Anders Johnsen
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Simplify some argument checking for socket calls Ensure valid range in the C++ code. Leave any argument checking with "user-friendly" error messaged to the Dart code. R=ajohnsen@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=30713

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added one more check #

Patch Set 3 : Addressed review comments #

Patch Set 4 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -40 lines) Patch
M runtime/bin/dartutils.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 2 1 chunk +11 lines, -1 line 0 comments Download
M runtime/bin/socket.cc View 1 2 3 chunks +32 lines, -39 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Søren Gjesse
7 years ago (2013-11-27 12:02:47 UTC) #1
Anders Johnsen
lgtm https://codereview.chromium.org/91043003/diff/1/runtime/bin/socket.cc File runtime/bin/socket.cc (right): https://codereview.chromium.org/91043003/diff/1/runtime/bin/socket.cc#newcode106 runtime/bin/socket.cc:106: int64_t port = DartUtils::GetIntegerValueCheckRange( Call it GetInt64ValueCheckRange?
7 years ago (2013-11-27 12:06:48 UTC) #2
Søren Gjesse
https://codereview.chromium.org/91043003/diff/1/runtime/bin/socket.cc File runtime/bin/socket.cc (right): https://codereview.chromium.org/91043003/diff/1/runtime/bin/socket.cc#newcode106 runtime/bin/socket.cc:106: int64_t port = DartUtils::GetIntegerValueCheckRange( On 2013/11/27 12:06:48, Anders Johnsen ...
7 years ago (2013-11-27 12:11:54 UTC) #3
Søren Gjesse
7 years ago (2013-11-27 12:12:16 UTC) #4
Message was sent while issue was closed.
Committed patchset #4 manually as r30713 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698