New issue
Advanced search Search tips

Issue 675102 link

Starred by 1 user

Issue metadata

Status: Verified
Owner: ----
Closed: Dec 2016
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Float-cast-overflow in blink::BaseRenderingContext2D::createLinearGradient

Project Member Reported by ClusterFuzz, Dec 16 2016

Issue description

Detailed report: https://cluster-fuzz.appspot.com/testcase?key=5003172046438400

Fuzzer: inferno_twister
Job Type: linux_ubsan_chrome
Platform Id: linux

Crash Type: Float-cast-overflow
Crash Address: 
Crash State:
  blink::BaseRenderingContext2D::createLinearGradient
  createLinearGradientMethod
  blink::CanvasRenderingContext2DV8Internal::createLinearGradientMethodCallback
  
Regressed: https://cluster-fuzz.appspot.com/revisions?job=linux_ubsan_chrome&range=435261:438085

Minimized Testcase (0.65 Kb): https://cluster-fuzz.appspot.com/download/AMIfv940LfAlKJJtwTqUACUAM-GWRVqaQMr_X8oPK0V_xkxHsLgIOT-b-Ojs4BKX2bpE9JwMNGa1XFaCCdvF925MPIvGu65FEByZ4A9xSAoHieJSEOl_zdl1-ykhRzoAWWGKqdiUJJlwTz2EJJtb6mpw-6lHuWqFeQ?testcase_id=5003172046438400

Issue filed automatically.

See https://dev.chromium.org/Home/chromium-security/bugs/reproducing-clusterfuzz-bugs for more information.
 
BaseRenderingContext2D::createLinearGradient needs to check that the cast to float is valid, and not use std::isfinite (as in  issue 676400 )
Project Member

Comment 2 by ClusterFuzz, Dec 22 2016

ClusterFuzz has detected this issue as fixed in range 440242:440280.

Detailed report: https://cluster-fuzz.appspot.com/testcase?key=5003172046438400

Fuzzer: inferno_twister
Job Type: linux_ubsan_chrome
Platform Id: linux

Crash Type: Float-cast-overflow
Crash Address: 
Crash State:
  blink::BaseRenderingContext2D::createLinearGradient
  createLinearGradientMethod
  blink::CanvasRenderingContext2DV8Internal::createLinearGradientMethodCallback
  
Regressed: https://cluster-fuzz.appspot.com/revisions?job=linux_ubsan_chrome&range=435261:438085
Fixed: https://cluster-fuzz.appspot.com/revisions?job=linux_ubsan_chrome&range=440242:440280

Minimized Testcase (0.65 Kb): https://cluster-fuzz.appspot.com/download/AMIfv940LfAlKJJtwTqUACUAM-GWRVqaQMr_X8oPK0V_xkxHsLgIOT-b-Ojs4BKX2bpE9JwMNGa1XFaCCdvF925MPIvGu65FEByZ4A9xSAoHieJSEOl_zdl1-ykhRzoAWWGKqdiUJJlwTz2EJJtb6mpw-6lHuWqFeQ?testcase_id=5003172046438400

See https://dev.chromium.org/Home/chromium-security/bugs/reproducing-clusterfuzz-bugs for more information.

If you suspect that the result above is incorrect, try re-doing that job on the test case report page.
Project Member

Comment 3 by ClusterFuzz, Dec 22 2016

Labels: ClusterFuzz-Verified
Status: Verified (was: Untriaged)
ClusterFuzz testcase 5003172046438400 is verified as fixed, so closing issue.

If this is incorrect, please add ClusterFuzz-Wrong label and re-open the issue.

Sign in to add a comment