commit | 35981296a8f4c5bb0736c730b45987559c8b8694 | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Thu May 27 12:26:37 2021 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu May 27 20:12:57 2021 +0000 |
tree | 95d6553a45845740406712748bc42d2d1cf900cd | |
parent | ce9d8e143d7a8f4a6e39c1765251dfdb00d128e9 [diff] |
Prevent overflow of integral types during constant-folding. Expressions which would overflow/wrap the result type are now left as-is. Change-Id: I6a942f337e6e5761823f5c9dcd214fa58227a626 Bug: skia:10932, skia:12050 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/413138 Auto-Submit: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Brian Osman <brianosman@google.com>