Compositor::ScrollLayerTo dereferences WeakPtr without checking it first |
||||
Issue descriptionCompositor::ScrollLayerTo dereferences WeakPtr without checking it first.
,
May 2 2018
More problematically, this exposes a WeakPtr as part of its public interface, which is a rather risky anti-pattern. To better understand why this is an anti-pattern that hides lifetime management issues (which can quickly become security issues), https://groups.google.com/a/chromium.org/forum/#!msg/chromium-dev/Oy3uuiTSwDk/5UDyRJcpJsUJ has a broader write-up of some of the patterns for safe and unsafe WeakPtr usage.
,
May 2 2018
,
May 2 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/d0ccb1593848ce8b7a4f081068dcaea0012f07ec commit d0ccb1593848ce8b7a4f081068dcaea0012f07ec Author: Elad Alon <eladalon@chromium.org> Date: Wed May 02 19:02:25 2018 Fix unsafe use of WeakPtr by Compositor and ScrollInputHandler This CL will just highlight the problem. Passing the CL to Sarah Chan, who will fix. Bug: 838873 Change-Id: If0878c717a572fb7d9522fa85e3a6c1d4f002151 Reviewed-on: https://chromium-review.googlesource.com/1039368 Commit-Queue: Elad Alon <eladalon@chromium.org> Reviewed-by: ccameron <ccameron@chromium.org> Cr-Commit-Position: refs/heads/master@{#555494} [modify] https://crrev.com/d0ccb1593848ce8b7a4f081068dcaea0012f07ec/ui/compositor/compositor.cc [modify] https://crrev.com/d0ccb1593848ce8b7a4f081068dcaea0012f07ec/ui/compositor/overscroll/scroll_input_handler.cc
,
May 3 2018
,
May 11 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/5b3c55bc76146c28789986b8f3784634ae76ac94 commit 5b3c55bc76146c28789986b8f3784634ae76ac94 Author: spqchan <spqchan@chromium.org> Date: Fri May 11 04:44:56 2018 Fix InputHandler WeakPtr handling in Compositor and ScrollInputHandler Bug: 838873 Change-Id: I22e5a8a54d372abc84993ef1cd33e4325856cb6b Reviewed-on: https://chromium-review.googlesource.com/1042726 Reviewed-by: Sadrul Chowdhury <sadrul@chromium.org> Reviewed-by: Elad Alon <eladalon@chromium.org> Commit-Queue: Sarah Chan <spqchan@chromium.org> Cr-Commit-Position: refs/heads/master@{#557796} [modify] https://crrev.com/5b3c55bc76146c28789986b8f3784634ae76ac94/ui/compositor/compositor.cc [modify] https://crrev.com/5b3c55bc76146c28789986b8f3784634ae76ac94/ui/compositor/overscroll/scroll_input_handler.cc [modify] https://crrev.com/5b3c55bc76146c28789986b8f3784634ae76ac94/ui/compositor/overscroll/scroll_input_handler.h
,
May 11 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by eladalon@chromium.org
, May 2 2018