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

Issue 131593003: Fix bad cast to XPath::Filter in XPathGrammar.y (Closed)

Created:
6 years, 11 months ago by Inactive
Modified:
6 years, 11 months ago
CC:
blink-reviews, inferno
Visibility:
Public.

Description

Fix bad cast to XPath::Filter in XPathGrammar.y In XPathGrammar.y, we cast the Expression to Filter before passing it to the Path constructor. This is wrong as the Expression is not necessarily of type XPath::Filter. For example, in fast/xpath/id-simple.html, it has type XPath::Function. I noticed this bug when marking the XPath::Filter class as FINAL. The fast/xpath/id-simple.html test started crashing as the call to Filter::evaluate() was resolved at compile time instead of using the vtable at runtime. Since the object is actually a XPath::Function and not a XPath::Filter in this test, this was causing trouble. BUG=333155 R=abarth, esprehn Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164845

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -14 lines) Patch
M Source/core/xml/XPathGrammar.y View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/xml/XPathPath.h View 1 chunk +11 lines, -11 lines 0 comments Download
M Source/core/xml/XPathPath.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Inactive
6 years, 11 months ago (2014-01-10 04:01:32 UTC) #1
esprehn
Woah, final is awesome. Lgtm To unsubscribe from this group and stop receiving emails from ...
6 years, 11 months ago (2014-01-10 04:03:24 UTC) #2
eseidel
lgtm
6 years, 11 months ago (2014-01-10 04:09:28 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/131593003/1
6 years, 11 months ago (2014-01-10 04:09:44 UTC) #4
inferno
Filed tracking security bug https://code.google.com/p/chromium/issues/detail?id=333155 and added to description. Thanks for finding and fixing this.
6 years, 11 months ago (2014-01-10 05:49:16 UTC) #5
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 11 months ago (2014-01-10 06:11:26 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/131593003/1
6 years, 11 months ago (2014-01-10 06:13:52 UTC) #7
commit-bot: I haz the power
6 years, 11 months ago (2014-01-10 06:21:17 UTC) #8
Message was sent while issue was closed.
Change committed as 164845

Powered by Google App Engine
This is Rietveld 408576698