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

Issue 2377443002: Fix another bug in AXTree caught by libfuzzer (Closed)

Created:
4 years, 2 months ago by dmazzoni
Modified:
4 years, 2 months ago
Reviewers:
aboxhall
CC:
aboxhall+watch_chromium.org, chromium-reviews, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, je_julie, nektar+watch_chromium.org, yuzo+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix another bug in AXTree caught by libfuzzer There were three cases found by libfuzzer but they all had the same root cause. Very similar to the previous issues fixed, basically cleaning up memory properly if we get a bogus tree with things like circular references. Specifically, when the root of the tree changes but then unserialization fails, we destroy the whole tree on exiting because there's no other way to preserve it. After deleting the old root, we then need to clean up |node|, but not if it was already deleted or reused. Previously we were checking if |node| was the same as |old_root|, but really we wanted to check if |node| was deleted at all, since it may have been a child of |old_root|. BUG=646795 Committed: https://crrev.com/c4d7605d5a8d55c703e6ac30754375b661478128 Cr-Commit-Position: refs/heads/master@{#421658}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -1 line) Patch
M ui/accessibility/ax_tree.cc View 1 1 chunk +8 lines, -1 line 0 comments Download
M ui/accessibility/ax_tree_unittest.cc View 1 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (14 generated)
dmazzoni
4 years, 2 months ago (2016-09-26 20:06:22 UTC) #4
aboxhall
https://codereview.chromium.org/2377443002/diff/1/ui/accessibility/ax_tree.cc File ui/accessibility/ax_tree.cc (left): https://codereview.chromium.org/2377443002/diff/1/ui/accessibility/ax_tree.cc#oldcode251 ui/accessibility/ax_tree.cc:251: if (node != old_root && Why is this no ...
4 years, 2 months ago (2016-09-26 20:24:44 UTC) #5
dmazzoni
https://codereview.chromium.org/2377443002/diff/1/ui/accessibility/ax_tree.cc File ui/accessibility/ax_tree.cc (left): https://codereview.chromium.org/2377443002/diff/1/ui/accessibility/ax_tree.cc#oldcode251 ui/accessibility/ax_tree.cc:251: if (node != old_root && On 2016/09/26 at 20:24:44, ...
4 years, 2 months ago (2016-09-27 20:19:26 UTC) #13
aboxhall
lgtm https://codereview.chromium.org/2377443002/diff/1/ui/accessibility/ax_tree_unittest.cc File ui/accessibility/ax_tree_unittest.cc (right): https://codereview.chromium.org/2377443002/diff/1/ui/accessibility/ax_tree_unittest.cc#newcode523 ui/accessibility/ax_tree_unittest.cc:523: node4.child_ids.push_back(1); On 2016/09/27 20:19:26, dmazzoni wrote: > On ...
4 years, 2 months ago (2016-09-28 19:23:28 UTC) #14
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/2377443002/20001
4 years, 2 months ago (2016-09-28 19:33:11 UTC) #16
commit-bot: I haz the power
Exceeded global retry quota
4 years, 2 months ago (2016-09-28 21:03:32 UTC) #18
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/2377443002/20001
4 years, 2 months ago (2016-09-28 21:34:51 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-09-28 22:17:46 UTC) #21
commit-bot: I haz the power
4 years, 2 months ago (2016-09-28 22:19:51 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c4d7605d5a8d55c703e6ac30754375b661478128
Cr-Commit-Position: refs/heads/master@{#421658}

Powered by Google App Engine
This is Rietveld 408576698