Integer-overflow in blink::XPath::FunSubstring::evaluate |
|||||
Issue descriptionDetailed report: https://cluster-fuzz.appspot.com/testcase?key=6738661486100480 Fuzzer: inferno_twister Job Type: linux_ubsan_chrome Platform Id: linux Crash Type: Integer-overflow Crash Address: Crash State: blink::XPath::FunSubstring::evaluate blink::XPathExpression::evaluate blink::XPathEvaluator::evaluate Regressed: https://cluster-fuzz.appspot.com/revisions?job=linux_ubsan_chrome&range=370022:370027 Minimized Testcase (7.86 Kb): https://cluster-fuzz.appspot.com/download/AMIfv95OBAf_9unInMPSsY6o1sNKi0plLmb_kZDj-6xcb-1NbUAltMLeE7_6kmWHdGNzFOUd7wcP-9zcNLWuF2UcE7khuOktRRTwb3B3MHYmj5rBguQ6IDBxb_iUeJDjamUYkfmvFtwBbVJzHqROszRsYq978iKhoA?testcase_id=6738661486100480 Additional requirements: Requires HTTP Filer: mummareddy See https://dev.chromium.org/Home/chromium-security/bugs/reproducing-clusterfuzz-bugs for more information.
,
Aug 3 2016
,
Oct 14 2016
Taking a look.
,
Oct 14 2016
This is in Blink's native XPath implementation; not libxml2. It looks like substring, etc. use static_cast<long>(double) to convert numeric arguments to double, so I guess 9223372036854775571 overflows. Patch up at https://codereview.chromium.org/2424453002
,
Oct 28 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/047653201597a4e5c3912d8c2c35adaa2ed6e6ec commit 047653201597a4e5c3912d8c2c35adaa2ed6e6ec Author: dominicc <dominicc@chromium.org> Date: Fri Oct 28 04:49:23 2016 Handle overflow, underflow in XPath substring position, length. BUG= 634167 Review-Url: https://codereview.chromium.org/2424453002 Cr-Commit-Position: refs/heads/master@{#428284} [modify] https://crrev.com/047653201597a4e5c3912d8c2c35adaa2ed6e6ec/third_party/WebKit/Source/core/BUILD.gn [modify] https://crrev.com/047653201597a4e5c3912d8c2c35adaa2ed6e6ec/third_party/WebKit/Source/core/xml/XPathExpressionNode.h [modify] https://crrev.com/047653201597a4e5c3912d8c2c35adaa2ed6e6ec/third_party/WebKit/Source/core/xml/XPathFunctions.cpp [modify] https://crrev.com/047653201597a4e5c3912d8c2c35adaa2ed6e6ec/third_party/WebKit/Source/core/xml/XPathFunctions.h [add] https://crrev.com/047653201597a4e5c3912d8c2c35adaa2ed6e6ec/third_party/WebKit/Source/core/xml/XPathFunctionsTest.cpp [modify] https://crrev.com/047653201597a4e5c3912d8c2c35adaa2ed6e6ec/third_party/WebKit/Source/core/xml/XPathPredicate.h [modify] https://crrev.com/047653201597a4e5c3912d8c2c35adaa2ed6e6ec/third_party/WebKit/Source/core/xml/XPathValue.h
,
Oct 31 2016
,
Nov 22 2016
Removing EditIssue view restrictions from ClusterFuzz filed bugs. If you believe that this issue should still be restricted, please reapply the label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by mummare...@chromium.org
, Aug 3 2016Components: Blink>XML
Labels: Te-Logged M-53
Owner: tkent@chromium.org
Status: Assigned (was: Untriaged)