Fix renderer SIGSEGV observed on certain website and profile combinations (#2552)

Rarely, with specific website and profile combinations, canvas can be NULL
inside blink::BaseRenderingContext2D::measureText(), causing a SIGSEGV.

Check for canvas validity before attempting to dereference the canvas
pointer.  Also check for an offscreen render surface and attempt to
apply anti-fingerprinting to that render surface if possible (thanks
to @uazo for the base implementation!)

Tested to work on Debian Bullseye ppc64el
This commit is contained in:
Timothy Pearson
2023-10-18 07:02:08 -05:00
committed by GitHub
parent 6e585e2b1c
commit c1747d8090
3 changed files with 21 additions and 4 deletions

View File

@@ -1 +1 @@
1
2