New issue
Advanced search Search tips

Issue 864284 link

Starred by 2 users

Issue metadata

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



Sign in to add a comment

Float-cast-overflow in blink::LayoutMenuList::UpdateOptionsWidth

Project Member Reported by ClusterFuzz, Jul 17

Issue description

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

Fuzzer: inferno_twister
Job Type: linux_ubsan_chrome
Platform Id: linux

Crash Type: Float-cast-overflow
Crash Address: 
Crash State:
  blink::LayoutMenuList::UpdateOptionsWidth
  blink::LayoutMenuList::ComputeIntrinsicLogicalWidths
  blink::LayoutBlock::ComputePreferredLogicalWidths
  
Sanitizer: undefined (UBSAN)

Regressed: https://clusterfuzz.com/revisions?job=linux_ubsan_chrome&range=551565:553024

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

Issue filed automatically.

See https://github.com/google/clusterfuzz-tools for more information.
 
Project Member

Comment 1 by ClusterFuzz, Jul 17

Components: Blink>Layout
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, Jul 17

Labels: Test-Predator-Auto-Owner
Owner: r...@igalia.com
Status: Assigned (was: Untriaged)
Automatically assigning owner based on suspected regression changelist https://chromium.googlesource.com/chromium/src/+/d6eb13f8406630faef5336daa221b9c345e612cf (Rename LayoutBox overrides to make names consistent).

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.
Cc: r...@igalia.com
Owner: ----
Status: Available (was: Assigned)
I don't think my patch is related to this issue
as it's just a refactoring changing the names of some methods.

I cannot reproduce the backtrace even using a ubsan build,
but checking the values of "max_option_width" and "options_width_"
in LayoutMenuList::UpdateOptionsWidth() is enough to see the problem.

I'm attaching a reduced test case that uses "letter-spacing: 1000000000;"
where you can see that "max_option_width" is 5000000000
but then "options_width_" is -2147483648.
Note that the issue only happens in quirks mode.

bug-864284-reduced.html
96 bytes View Download

Sign in to add a comment