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

Issue 20582003: WebCrypto: Fix a crash when passing invalid ArrayBufferView to importKey. (Closed)

Created:
7 years, 5 months ago by eroman
Modified:
7 years, 5 months ago
Reviewers:
abarth-chromium
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch
Visibility:
Public.

Description

WebCrypto: Fix a crash when passing invalid ArrayBufferView to importKey. BUG=245025 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154965

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -0 lines) Patch
M LayoutTests/crypto/importKey.html View 1 chunk +4 lines, -0 lines 1 comment Download
M LayoutTests/crypto/importKey-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/crypto/SubtleCrypto.cpp View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
eroman
Adam, is this a bug in the IDL generator? In the SubtleCrypto.idl [1] I specify ...
7 years, 5 months ago (2013-07-25 23:29:38 UTC) #1
abarth-chromium
LGTM https://codereview.chromium.org/20582003/diff/1/LayoutTests/crypto/importKey.html File LayoutTests/crypto/importKey.html (right): https://codereview.chromium.org/20582003/diff/1/LayoutTests/crypto/importKey.html#newcode210 LayoutTests/crypto/importKey.html:210: shouldThrow("crypto.subtle.importKey(keyFormat, null, algorithm, extractable, keyUsages)"); null is a ...
7 years, 5 months ago (2013-07-25 23:31:30 UTC) #2
eroman
I tested with: [] null '' document.body These all are accepted by the generated bindings, ...
7 years, 5 months ago (2013-07-25 23:36:41 UTC) #3
abarth-chromium
That sounds like a bug in the code generator. At least some of those should ...
7 years, 5 months ago (2013-07-25 23:37:18 UTC) #4
abarth-chromium
7 years, 5 months ago (2013-07-25 23:37:23 UTC) #5
eroman
Thanks, I will follow-up with the IDL generator then!
7 years, 5 months ago (2013-07-25 23:38:06 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/20582003/1
7 years, 5 months ago (2013-07-25 23:45:02 UTC) #7
commit-bot: I haz the power
7 years, 5 months ago (2013-07-26 02:46:55 UTC) #8
Message was sent while issue was closed.
Change committed as 154965

Powered by Google App Engine
This is Rietveld 408576698