Go to file
Leon Scroggins III 68825776f4 Ensure fSrcOffsetUnits is in a valid range
Bug: oss-fuzz:11114

fSrcOffsetUnits is where we start sampling from the image. It is
computed as

  (sampleX / 2) * fSrcBPP

(ignoring fSrcOffset, which is 0 for a GIF with a subset frame).
sampleX will be no wider than the full image, and we divide it by two to
sample points evenly spread through the image. But for a subset frame,
we need to use a different sampling rate to ensure that the sampled
points are within the width of the frame.

Change-Id: I4a313db096fbaea7d869927a9da5df9beb9f6706
Reviewed-on: https://skia-review.googlesource.com/c/165500
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
2018-10-29 12:18:52 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench On second thought, remove GrColor4s 2018-10-26 19:29:50 +00:00
bin Add script to pull svgs to svgs/ and add to .gitignore 2018-08-31 20:02:24 +00:00
dm remove src/jumper 2018-10-24 11:15:58 +00:00
docker Use new build targets in continuous build of skottie and debugger. 2018-09-20 15:26:18 +00:00
docs fix examples with vertical text 2018-10-25 12:20:31 +00:00
example Compile with GCC 7.2.0. 2018-03-13 22:18:18 +00:00
experimental [canvaskit] Remove ReadBuffer 2018-10-25 19:17:59 +00:00
fuzz Reland "hide setTextAlign" 2018-10-27 14:39:05 +00:00
gm use utils for deprecated TextAlign 2018-10-26 14:35:28 +00:00
gn Revert "Extract per-edge quad vertex tesselation code into reusable interface" 2018-10-27 13:02:42 +00:00
include Reland "hide setTextAlign" 2018-10-27 14:39:05 +00:00
infra infra/skqp/docker/README.md: whitespace changes for readability 2018-10-29 10:46:56 +00:00
modules only build non-prod skottie/sksg code in our tree 2018-10-18 17:50:51 +00:00
platform_tools SkQP/Java: remove unneeded stack trace, count tests correcctly 2018-10-26 18:07:33 +00:00
resources Test a GIF with an out of range transparent index 2018-10-12 14:20:02 +00:00
samplecode use utils for deprecated TextAlign 2018-10-26 14:35:28 +00:00
site Update markdown files 2018-10-26 05:43:17 +00:00
src Ensure fSrcOffsetUnits is in a valid range 2018-10-29 12:18:52 +00:00
tests Reland "hide setTextAlign" 2018-10-27 14:39:05 +00:00
third_party Reland "New GIF codec; new third_party/wuffs dep" 2018-10-26 13:53:04 +00:00
tools Reland "hide setTextAlign" 2018-10-27 14:39:05 +00:00
.clang-format clean up flattenable macro cruft 2018-10-19 16:18:32 +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 Fixed SkVertices crashing on Windows DLL builds 2018-04-22 14:42:01 +00:00
BUILD.gn Reland "New GIF codec; new third_party/wuffs dep" 2018-10-26 13:53:04 +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 bfe31c42e15e..df73a8e5ffdb (1 commits) 2018-10-29 04:12:49 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07: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 new autoroll service accounts to AUTHORS check bypass 2018-09-07 18:49:23 +00:00
public.bzl Revert "add flag for google3 build" 2018-10-27 15:38:16 +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.