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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLMenuItemElement/menuitem-crash-asan.html

Issue 1962073003: Fix ASan container overflow in HTMLMenuItemElement::defaultEventHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding tests Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/HTMLMenuItemElement/menuitem-crash-asan-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/dom/HTMLMenuItemElement/menuitem-crash-asan.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLMenuItemElement/menuitem-crash-asan.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLMenuItemElement/menuitem-crash-asan.html
new file mode 100644
index 0000000000000000000000000000000000000000..b46dab9dd7ae44a0bf8dbdb009a1439ffe116af3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLMenuItemElement/menuitem-crash-asan.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<body>
+Test passes if it does not crash on Linux ASan builds.
+<menuitem id="domfuzz" checked type="radio"><menuitem checked>
+<script>
+function fuzz() {
+ document.getElementById("domfuzz").addEventListener(
+ "fullscreenerror", function() {
+ var elt = document.getElementById("domfuzz");
+ elt.setAttribute("radiogroup", "G1");
+ });
+ e = document.createEvent("Event");
+ var element = document.getElementById("domfuzz");
+ e.initEvent("fullscreenerror");
+ element.dispatchEvent(e);
+ e = document.createEvent("Event");
+ e.initEvent("click");
+ element.dispatchEvent(e);
+}
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ fuzz();
+}
+</script>
+</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/HTMLMenuItemElement/menuitem-crash-asan-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698