commit | 90627c83c12c3df51961391841caef065fa2015a | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Tue May 17 19:33:06 2022 -0400 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Wed May 18 14:24:23 2022 +0000 |
tree | 9b3fc3fd530f25f39aa10fe14f53d3496149f959 | |
parent | a72ce3892751920d62422d46100e42c1d34dfd72 [diff] |
Avoid potential for division by zero in sk_clamp_grad_4. Based on the structure of the checks, there's no way to enter an if block if the denominator of the division would be zero. Change-Id: I252c05aab43f26984afa2eab89648d5ec4e280b1 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/541074 Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: James Godfrey-Kittle <jamesgk@google.com>