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

Unified Diff: LayoutTests/svg/custom/svg-length-rem-crash.html

Issue 1069213003: SVGLength: Avoid reading out-of-bounds when parsing incorrect 'rem' unit (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 | LayoutTests/svg/custom/svg-length-rem-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/custom/svg-length-rem-crash.html
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-invalid-header.html b/LayoutTests/svg/custom/svg-length-rem-crash.html
similarity index 53%
copy from LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-invalid-header.html
copy to LayoutTests/svg/custom/svg-length-rem-crash.html
index 61e070ef474181826824ee4a11083eb4f2089355..9aab69a0044e01b2affb1d2188b5f2aae85e2584 100644
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-invalid-header.html
+++ b/LayoutTests/svg/custom/svg-length-rem-crash.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
-<iframe src="resources/sandbox.php?sandbox=allowScript"></iframe>
+<svg width="1re"></svg>
+<p>This test passes if it doesn't crash in ASAN.</p>
<script>
if (window.testRunner)
testRunner.dumpAsText();
« no previous file with comments | « no previous file | LayoutTests/svg/custom/svg-length-rem-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698