New issue
Advanced search Search tips

Issue 919352 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: Bug



Sign in to add a comment

document.execCommand('InsertImage') crashes with unusual DOM

Project Member Reported by ClusterFuzz, Jan 6

Issue description

Detailed report: https://clusterfuzz.com/testcase?key=4805310149296128

Fuzzer: inferno_layout_test_unmodified
Job Type: linux_msan_content_shell_drt
Platform Id: linux

Crash Type: Abrt
Crash Address: 0x053900000001
Crash State:
  blink::CreateMarkupAlgorithm<blink::EditingAlgorithm<blink::NodeTraversal> >::Cr
  blink::CreateMarkup
  blink::CompositeEditCommand::MoveParagraphs
  
Sanitizer: memory (MSAN)

Regressed: https://clusterfuzz.com/revisions?job=linux_msan_content_shell_drt&range=545390:545391

Reproducer Testcase: https://clusterfuzz.com/download?testcase_id=4805310149296128

Issue filed automatically.

See https://www.chromium.org/developers/testing/memorysanitizer#TOC-Reproducing-ClusterFuzz-Bugs for instructions to reproduce this bug locally.
 
Project Member

Comment 1 by ClusterFuzz, Jan 6

Components: Blink>Editing
Labels: Test-Predator-Auto-Components
Automatically applying components based on crash stacktrace and information from OWNERS files.

If this is incorrect, please apply the Test-Predator-Wrong-Components label.
Project Member

Comment 2 by ClusterFuzz, Jan 6

Labels: Test-Predator-Auto-Owner
Owner: xiaoche...@chromium.org
Status: Assigned (was: Untriaged)
Automatically assigning owner based on suspected regression changelist https://chromium.googlesource.com/chromium/src/+/8e793a18ec6358414ffc337b336c93d4f6061c91 (Skip non-text svg elements in Most{For/Back}wardCaretPosition).

If this is incorrect, please let us know why and apply the Test-Predator-Wrong-CLs label. If you aren't the correct owner for this issue, please unassign yourself as soon as possible so it can be re-triaged.
Components: -Blink>Editing Blink>Editing>Command
Labels: -Pri-1 Pri-3
Status: Available (was: Assigned)
Summary: document.execCommand('InsertImage') crashes with unusual DOM (was: Abrt in blink::CreateMarkupAlgorithm<blink::EditingAlgorithm<blink::NodeTraversal> >::Cr)
P3/Available due to the low usage of 'InsertImage' command and the unusual DOM and selection required to reproduce:

BODY (editable) (focused)
	HR (editable)
		HTML (editable)
			HEAD (editable)
				STYLE (editable)
					#text "\n.CLASS7{writing-mode:tb;}\n.CLASS10{padding-left:52vw;}\n"
				#text "\n"
			BODY (editable)
				HR (editable)
					BUTTON (editable)
				OBJECT (editable)
					#shadow-root(UserAgent)
						SLOT
					#text "\n"
					DIV style="text-align: justify;" (editable)
						MAP class="CLASS10 CLASS7" (editable)
						MAP class="CLASS10 CLASS7" (editable)
						STRONG (editable)
					BUTTON (editable)
					BUTTON (editable)
					BUTTON (editable)
					BUTTON (editable)
					BUTTON (editable)
					MAP class="CLASS10 CLASS7" (editable)
				VAR (editable)
	OBJECT (editable)
		#shadow-root(UserAgent)
			SLOT
		#text "\n"
		DIV (editable)
			MAP class="CLASS10 CLASS7" (editable)
SE			MAP class="CLASS10 CLASS7" (editable)
			STRONG (editable)
		BUTTON (editable)
		BUTTON (editable)
		BUTTON (editable)
		BUTTON (editable)
		BUTTON (editable)
		MAP class="CLASS10 CLASS7" (editable)
	VAR (editable)
start: beforeAnchor
end: beforeAnchor

Hand minimized the test case as attached, but it's still too complicated...
clusterfuzz-testcase-minimized-4805310149296128.html
2.9 KB View Download
Owner: ----

Sign in to add a comment