skia /
skcms /
1916b23b1708a69341505f8df8c66f82215fe904 Further harden exp2f_
When `x` is less than -127 `fbits` is guaranteed to become negative.
However, if `x` is very large negative value, then `floorf_` causes overflow.
This change adds a shortcut that prevent calculation of `floorf_` on unhealthy values.
Bug: b/308297480
Change-Id: I3cd008380ab714c21dc2b1636e699dbf3ec9d68c
Reviewed-on: https://skia-review.googlesource.com/c/skcms/+/772236
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Evgenii Kliuchnikov <eustas@google.com>
1 file changed