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

Issue 2708383002: Be strict about input in the GCMMessageCryptographer (Closed)

Created:
3 years, 10 months ago by Peter Beverloo
Modified:
3 years, 7 months ago
Reviewers:
eroman, davidben
CC:
chromium-reviews, Peter Beverloo, johnme+watch_chromium.org, zea+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Be strict about input in the GCMMessageCryptographer The cryptographer used to be lenient about input, which was reflected by a series of unit tests that passed in values that wouldn't match real world input. The GCMEncryptionProvider's job is to validate the received input, whereas the GCMMessageCryptographer should assume it's correct. This CL adds a bunch of DCHECKs, and updates the tests to make sure valid values are passed in where expected. BUG=679789 Review-Url: https://codereview.chromium.org/2708383002 Cr-Commit-Position: refs/heads/master@{#470284} Committed: https://chromium.googlesource.com/chromium/src/+/33f2124d4b3245ca20d3ceb683b15858ffa524c4

Patch Set 1 : Be strict about input in the GCMMessageCryptographer #

Patch Set 2 : Be strict about input in the GCMMessageCryptographer #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -147 lines) Patch
M components/gcm_driver/crypto/gcm_message_cryptographer.cc View 1 2 2 chunks +6 lines, -9 lines 0 comments Download
M components/gcm_driver/crypto/gcm_message_cryptographer_unittest.cc View 1 2 12 chunks +253 lines, -138 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 23 (19 generated)
Peter Beverloo
Hi David, This is the second CL. Functional change is that we move from soft ...
3 years, 10 months ago (2017-02-22 17:37:36 UTC) #5
eroman
lgtm
3 years, 7 months ago (2017-05-05 20:55:34 UTC) #13
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/2708383002/60001
3 years, 7 months ago (2017-05-09 11:19:43 UTC) #20
commit-bot: I haz the power
3 years, 7 months ago (2017-05-09 11:35:52 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/33f2124d4b3245ca20d3ceb683b1...

Powered by Google App Engine
This is Rietveld 408576698