Go to file
Leon Scroggins III 6e45ce7e06 Fix uninitialized errors in SkPngCodec
- Initialize rowsDecoded in SkSampledCodec. Otherwise,
fillIncompleteImage may be called with an uninitialized
value. This change was originally uploaded to AOSP as
https://android-review.googlesource.com/c/platform/external/skia/+/785816
- If SkPngCodec hits an error, still transform from the
interlace buffer (if needed) and set rowsDecoded properly.
- Do not copy uninitialized memory from the interlace buffer.
- Make BRD treat kErrorInInput like kIncompleteInput. The two errors
are different for the purposes of incremental decode. For a direct
decode, they're essentially the same - part was decoded, but then
the decode was interrupted. This allows testing images with
errors on the bots without reporting a failure.
- Add some images to test incomplete pngs
  - errorInInput.png: color_wheel.png truncated with extra 0s at the
    end to trigger kErrorInInput
  - incInterlaced.png: basi3p02.png (from PNGSuite) similarly modified.
    This triggers kIncompleteInput. We have several incomplete PNGs that
    we are testing on the bots, but this is the first interlaced
  - errorInInputInterlaced.png: This is the same as incInterlaced with
    more zeroes at the end. The incorrect CRC (all zeroes) results in
    kErrorInInput


Change-Id: I25e1ea917e1c1ca212f104cb9d70290265a51b2d
Reviewed-on: https://skia-review.googlesource.com/c/161822
Commit-Queue: Leon Scroggins <scroggo@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2018-10-16 20:30:48 +00:00
animations
bench Remove all remaining GrColor4f (other than gradients) 2018-10-16 19:45:53 +00:00
bin Add script to pull svgs to svgs/ and add to .gitignore 2018-08-31 20:02:24 +00:00
dm clean up SkPipe 2018-10-12 16:50:21 +00:00
docker Use new build targets in continuous build of skottie and debugger. 2018-09-20 15:26:18 +00:00
docs streamline web documentation 2018-10-16 17:35:54 +00:00
example Compile with GCC 7.2.0. 2018-03-13 22:18:18 +00:00
experimental Add Correctness tests for CanvasKit 2018-10-16 14:32:28 +00:00
fuzz Exercise entire public PathOp API 2018-10-12 14:44:41 +00:00
gm Remove all remaining GrColor4f (other than gradients) 2018-10-16 19:45:53 +00:00
gn Revert "converted AARectEffect to new FP system" 2018-10-15 20:43:26 +00:00
include Remove all remaining GrColor4f (other than gradients) 2018-10-16 19:45:53 +00:00
infra Fix uninitialized errors in SkPngCodec 2018-10-16 20:30:48 +00:00
modules Add Correctness tests for CanvasKit 2018-10-16 14:32:28 +00:00
platform_tools Add Build and Test jobs for SKQP using docker. 2018-10-08 19:17:25 +00:00
resources Test a GIF with an out of range transparent index 2018-10-12 14:20:02 +00:00
samplecode Move GrBackend enum to enum class. 2018-10-12 14:01:58 +00:00
site streamline web documentation 2018-10-16 17:35:54 +00:00
src Fix uninitialized errors in SkPngCodec 2018-10-16 20:30:48 +00:00
tests Remove all remaining GrColor4f (other than gradients) 2018-10-16 19:45:53 +00:00
third_party Roll skia/third_party/skcms 33ca7b4f7334..fa2161cf791f (1 commits) 2018-10-16 17:46:03 +00:00
tools streamline web documentation 2018-10-16 17:35:54 +00:00
.clang-format Update .clang-format to handle Objective-C files 2018-07-27 21:33:30 +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 Re-enable NVPR on flutter. 2018-10-16 16:15:47 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING
CQ_COMMITTERS
DEPS Roll third_party/externals/swiftshader 518142733c90..9b7688491526 (1 commits) 2018-10-16 18:39:31 +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 Add ignore to Bazel file 2018-10-15 16:00:16 +00:00
README
README.chromium
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.