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

Issue 1369773004: IndexedDB: Fix null ptr crash in IDBCursor::value(). (Closed)

Created:
5 years, 2 months ago by cmumford
Modified:
5 years, 2 months ago
Reviewers:
jsbell
CC:
chromium-reviews, blink-reviews, dgrogan, jsbell+idb_chromium.org, blink-reviews-bindings_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

IndexedDB: Fix null ptr crash in IDBCursor::value(). A better approach than the initial fix that landed in #350774. This one should catch a broader rage of situations in which the cursor's value is read before being made ready. BUG=535119 Committed: https://crrev.com/28b60de585cb8ea61421d379ad18bf3f0dc057b9 Cr-Commit-Position: refs/heads/master@{#351680}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added regression layout test. #

Total comments: 8

Patch Set 3 : Layout test fixes. #

Patch Set 4 : Reverted null ptr check removal #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/storage/indexeddb/cursor-after-range-bug.html View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBCursor.cpp View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 21 (5 generated)
cmumford
jsbell: I like this solution better than my original fix in https://codereview.chromium.org/1360163003. If you +1 ...
5 years, 2 months ago (2015-09-25 17:41:27 UTC) #2
jsbell
https://codereview.chromium.org/1369773004/diff/1/third_party/WebKit/Source/modules/indexeddb/IDBCursor.cpp File third_party/WebKit/Source/modules/indexeddb/IDBCursor.cpp (right): https://codereview.chromium.org/1369773004/diff/1/third_party/WebKit/Source/modules/indexeddb/IDBCursor.cpp#newcode324 third_party/WebKit/Source/modules/indexeddb/IDBCursor.cpp:324: if (!m_value) { From code inspection, it looks like ...
5 years, 2 months ago (2015-09-28 17:11:29 UTC) #3
cmumford
On 2015/09/28 17:11:29, jsbell wrote: > https://codereview.chromium.org/1369773004/diff/1/third_party/WebKit/Source/modules/indexeddb/IDBCursor.cpp > File third_party/WebKit/Source/modules/indexeddb/IDBCursor.cpp (right): > > https://codereview.chromium.org/1369773004/diff/1/third_party/WebKit/Source/modules/indexeddb/IDBCursor.cpp#newcode324 > ...
5 years, 2 months ago (2015-09-28 17:12:37 UTC) #4
cmumford
Test passes in FF too.
5 years, 2 months ago (2015-09-30 18:49:40 UTC) #5
jsbell
https://chromiumcodereview.appspot.com/1369773004/diff/20001/third_party/WebKit/LayoutTests/storage/indexeddb/cursor-after-range-bug.html File third_party/WebKit/LayoutTests/storage/indexeddb/cursor-after-range-bug.html (right): https://chromiumcodereview.appspot.com/1369773004/diff/20001/third_party/WebKit/LayoutTests/storage/indexeddb/cursor-after-range-bug.html#newcode7 third_party/WebKit/LayoutTests/storage/indexeddb/cursor-after-range-bug.html:7: function doSetup(dbName, dbVersion, onsuccess) { You should make this ...
5 years, 2 months ago (2015-09-30 20:34:06 UTC) #6
jsbell
On 2015/09/30 18:49:40, cmumford wrote: > Test passes in FF too. Awesome, thanks for checking.
5 years, 2 months ago (2015-09-30 20:34:22 UTC) #7
jsbell
Also, c++ side and test semantics l*g*t*m but I'll take another look at the test ...
5 years, 2 months ago (2015-09-30 20:51:47 UTC) #8
cmumford
https://codereview.chromium.org/1369773004/diff/20001/third_party/WebKit/LayoutTests/storage/indexeddb/cursor-after-range-bug.html File third_party/WebKit/LayoutTests/storage/indexeddb/cursor-after-range-bug.html (right): https://codereview.chromium.org/1369773004/diff/20001/third_party/WebKit/LayoutTests/storage/indexeddb/cursor-after-range-bug.html#newcode7 third_party/WebKit/LayoutTests/storage/indexeddb/cursor-after-range-bug.html:7: function doSetup(dbName, dbVersion, onsuccess) { On 2015/09/30 20:34:06, jsbell ...
5 years, 2 months ago (2015-09-30 21:59:44 UTC) #9
jsbell
lgtm
5 years, 2 months ago (2015-09-30 22:23:01 UTC) #10
jsbell
lgtm
5 years, 2 months ago (2015-09-30 22:23:02 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1369773004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1369773004/40001
5 years, 2 months ago (2015-09-30 22:26:08 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/105434)
5 years, 2 months ago (2015-09-30 22:37:12 UTC) #15
jsbell
On 2015/09/30 22:37:12, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 2 months ago (2015-09-30 22:42:24 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1369773004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1369773004/60001
5 years, 2 months ago (2015-09-30 23:04:48 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-10-01 00:15:43 UTC) #20
commit-bot: I haz the power
5 years, 2 months ago (2015-10-01 00:16:31 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/28b60de585cb8ea61421d379ad18bf3f0dc057b9
Cr-Commit-Position: refs/heads/master@{#351680}

Powered by Google App Engine
This is Rietveld 408576698