DescriptionUse double precision in SVGLengthContext::convertValueToUserUnits
This method does a bunch of <float> * <double> operations, which tickles
UBSANs float-overflow warning when the result is stored back into the
float (single precision) local variable.
We clamp the result to a narrow enough range already at the end (and
hence won't see any effects of the overflow, at least assuming IEEE754),
but might as well use a double precision local variable, since that
actually seems to save a few instructions while also avoiding the
overflowing conversion.
BUG=675140
Committed: https://crrev.com/44dabf826136f0ddfab6f908036b68c7dce9a616
Cr-Commit-Position: refs/heads/master@{#440056}
Patch Set 1 #Patch Set 2 : Expectations updated #
Messages
Total messages: 18 (13 generated)
|