Go to file
Mike Klein bc537fac4b step carefully in decal_nofilter_scale
can_truncate_to_fixed_for_decal() is correct to check that we can step
fx by dx count-1 times without overflowing, but as written we actually
step count times, and sometimes the final fx does overflow.  Fuzzers
equipped with UBSAN have noticed.

There's no real bug here, as we ignore that final fx, but we can step
carefully to avoid this with very little impact on code complexity or
performance.

Bug: chromium:951264
Cq-Include-Trybots: luci.chromium.try:linux-blink-rel
Change-Id: I5446dbdffdc5fa873c843c26654894bd79202971
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/207921
Commit-Queue: Mike Klein <mtklein@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Auto-Submit: Mike Klein <mtklein@google.com>
2019-04-15 17:26:28 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench add utility for caching char2glyph 2019-04-13 00:03:58 +00:00
bin tools: bin/sync just alias for git-sync-deps now 2019-02-22 20:05:05 +00:00
dm extract ToolUtils::colortype_depth() 2019-04-09 20:32:15 +00:00
docker Include wasm debugger in continuous build part 2 2019-04-01 19:51:43 +00:00
docs/examples New factories for SkShaders 2019-04-09 19:15:01 +00:00
example Use SkTileMode instead of nested enum 2019-04-03 15:24:18 +00:00
experimental externs needed for cpu/gpu switch 2019-04-10 13:47:21 +00:00
fuzz New factories for SkShaders 2019-04-09 19:15:01 +00:00
gm Support domain clamping and transform matrices in YUVToRGB effects 2019-04-12 19:43:38 +00:00
gn Add callback to flush for knowing when gpu is finished work. 2019-04-15 13:52:28 +00:00
include always zero SkMallocPixelRefs 2019-04-15 15:50:58 +00:00
infra Add LenovoYogaC630 (Win arm64 bot) 2019-04-15 15:35:48 +00:00
modules Include particles in shared Windows builds 2019-04-12 15:05:57 +00:00
platform_tools SkAnimTimer -> AnimTimer 2019-03-20 18:26:35 +00:00
resources Add planet emoji font. 2019-03-19 17:49:22 +00:00
samplecode remove SkMixer, since we have explicit lerps/blends in SkShader 2019-04-10 20:59:30 +00:00
site Remove bookmaker sources and data files 2019-03-25 18:56:29 +00:00
src step carefully in decal_nofilter_scale 2019-04-15 17:26:28 +00:00
tests Add callback to flush for knowing when gpu is finished work. 2019-04-15 13:52:28 +00:00
third_party Roll skia/third_party/skcms 0da672fc2c69..668026c511f3 (1 commits) 2019-04-15 16:32:18 +00:00
tools Extend --writeShaders to output SPIR-V 2019-04-15 14:04:18 +00:00
.clang-format restore .clang-format 2019-03-21 15:52:32 +00:00
.clang-tidy add google-build-namespaces to clang-tidy checks 2018-12-12 16:33:59 +00:00
.gitignore Add script to pull svgs to svgs/ and add to .gitignore 2018-08-31 20:02:24 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS fix metal build errors with preprocessor definitions 2019-03-28 18:47:37 +00:00
BUILD.gn Make SkShaper's GN setup more DLL friendly 2019-04-10 18:59:35 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll third_party/externals/angle2 cfc73cc1af5e..065f8dc35f9d (12 commits) 2019-04-15 05:01:51 +00:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py add mtklein to api approvals 2019-04-02 15:16:56 +00:00
public.bzl buildifier public.bzl 2019-03-27 19:00:04 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
whitespace.txt [infra] Marker for IntelBayTrail BIOS update. 2018-09-17 16:47:35 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.