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

Issue 2843303002: DOMStorage: Better defend against a tight loop maliciously using the API. (Closed)

Created:
3 years, 7 months ago by michaeln
Modified:
3 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

DOMStorage: Better defend against a tight loop maliciously using the API. Terminate the renderer if an excessive number of calls are made, This is indicative of script in an infinite loop or being malicious. It's better to crash intentionally than by running the system OOM and interfering with everything else running on the system. BUG=706432 Review-Url: https://codereview.chromium.org/2843303002 Cr-Commit-Position: refs/heads/master@{#468502} Committed: https://chromium.googlesource.com/chromium/src/+/8b561a879f76a6f776af31d13f90566c91f87600

Patch Set 1 #

Patch Set 2 : comment #

Patch Set 3 : 1000000 limit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -2 lines) Patch
M content/renderer/dom_storage/dom_storage_dispatcher.cc View 1 2 1 chunk +10 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
michaeln
ptal, a very small and probably short lived change
3 years, 7 months ago (2017-04-28 00:52:19 UTC) #9
Marijn Kruisselbrink
How does this actually do something? PushPendingCallback is only called right before calls to SendThrottled, ...
3 years, 7 months ago (2017-04-28 17:02:39 UTC) #10
michaeln
On 2017/04/28 17:02:39, Marijn Kruisselbrink wrote: > How does this actually do something? PushPendingCallback is ...
3 years, 7 months ago (2017-04-28 19:57:38 UTC) #11
Marijn Kruisselbrink
makes sense, thanks for the explanation. lgtm Although as you point out, this fix isn't ...
3 years, 7 months ago (2017-04-29 00:31:00 UTC) #12
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/2843303002/40001
3 years, 7 months ago (2017-04-29 00:35:28 UTC) #14
michaeln
On 2017/04/29 00:31:00, Marijn Kruisselbrink wrote: > makes sense, thanks for the explanation. lgtm > ...
3 years, 7 months ago (2017-04-29 00:45:24 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/373366)
3 years, 7 months ago (2017-04-29 03:19:12 UTC) #17
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/2843303002/40001
3 years, 7 months ago (2017-05-01 23:12:39 UTC) #19
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 00:16:25 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/8b561a879f76a6f776af31d13f90...

Powered by Google App Engine
This is Rietveld 408576698