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

Issue 2731533002: Move the full Blink version envelope reading logic into V8ScriptValueDeserializer. (Closed)

Created:
3 years, 9 months ago by jbroman
Modified:
3 years, 9 months ago
Reviewers:
haraken
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews, jbroman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move the full Blink version envelope reading logic into V8ScriptValueDeserializer. Doing a proper varint decode ensures that the code to read the version from the envelope and the code that detects the envelope agree. The fuzzer detected that it was possible to encode a small version number with a large number of bytes (with the leading one being 0x80). This corrects that and adds a test for that case. BUG=697505 Review-Url: https://codereview.chromium.org/2731533002 Cr-Commit-Position: refs/heads/master@{#454467} Committed: https://chromium.googlesource.com/chromium/src/+/43c2760715bdba5d474b1f0537244de8c7680ab6

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -12 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp View 2 chunks +41 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializerTest.cpp View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (8 generated)
jbroman
So you were right, and there was an edge case in this code I hadn't ...
3 years, 9 months ago (2017-03-02 19:44:34 UTC) #6
haraken
LGTM
3 years, 9 months ago (2017-03-02 23:20:17 UTC) #7
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/2731533002/1
3 years, 9 months ago (2017-03-03 02:12:40 UTC) #9
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 02:18:07 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/43c2760715bdba5d474b1f053724...

Powered by Google App Engine
This is Rietveld 408576698