aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports/SkOSLibrary.h
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2018-01-23 10:31:56 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-23 18:18:37 +0000
commit08dae924f63cd00153ec365074ad498dbb8ab5ab (patch)
tree053787481fddf423577c028a83240b6905afc4a4 /src/ports/SkOSLibrary.h
parentd8327a8c8bad870112b574c4533270370f5c1ccf (diff)
Fixed a few spots where SkSL optimizer was not respecting side effects
This was affecting expressions such as 0 * float4(<expr>), which would be collapsed down to float4(0) - in some cases even if <expr> had side effects. This is obviously incorrect no matter what, but to make matters worse it could lead to a use-after-free when we eliminated an assignment which we were tracking as the current definition of a variable. Bug: skia:7467 Change-Id: I91ba154c57dad9cadf36b6062bec3211557248e0 Reviewed-on: https://skia-review.googlesource.com/98704 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/ports/SkOSLibrary.h')
0 files changed, 0 insertions, 0 deletions