skia2/infra
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
..
bots Fix uninitialized errors in SkPngCodec 2018-10-16 20:30:48 +00:00
branch-config add BonusConfigs bot to CQ 2018-10-02 20:50:04 +00:00
canvaskit Add Correctness tests for CanvasKit 2018-10-16 14:32:28 +00:00
config Roll recipe dependencies (trivial). 2018-10-16 18:09:21 +00:00
cts Test SKQP on Firebase Testlab and Upload 2018-03-07 20:44:50 +00:00
lottiecap Run lottie-web Gold collection at ToT 2018-09-05 12:06:01 +00:00
pathkit Add Correctness tests for CanvasKit 2018-10-16 14:32:28 +00:00
project-config Delete swarm_trigger recipe 2016-12-13 12:53:00 +00:00
skqp Add Build and Test jobs for SKQP using docker. 2018-10-08 19:17:25 +00:00
README.md Added CQ config to skia repo 2015-06-08 05:12:56 -07:00

This directory contains infra-specific files. The branch-config/ directory contains configs that are specific to the master branch (e.g. config for the CQ committing to the master branch), while project-config/ directory contains project-wide configuration (e.g. list of buckets for cr-buildbucket service and list of refs known to the infra services).