skia2/src
Leon Scroggins III a6161b1746 Properly fill in memory in sampled RLE BMPs
Bug: oss-fuzz:11039

Previously, RLE BMPs were not initialized when they were incomplete,
with the thinking that they were fully initialized at the start of
decoding. While this is true during full decodes (onGetPixels), it is
not true of scanline decodes where we may start with a failing skip.

Remove incorrect comment about creating a sampler in SkBmpRLECodec.
Instead create the sampler when appropriate. Rather than make it
implement its own version of SkSampler::fill, which would look like the
other implementations, add a new virtual method to determine the width
and leave the common implementation to the caller.

Simplify SkCodec::fillIncompleteImage, which always does basically the
same thing.

Change-Id: I885ebb7a0fe5add2a4f59bce57d07d98e4dc1bdb
Reviewed-on: https://skia-review.googlesource.com/c/163484
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
2018-10-18 19:23:08 +00:00
..
android Fix uninitialized errors in SkPngCodec 2018-10-16 20:30:48 +00:00
atlastext Remove all remaining GrColor4f (other than gradients) 2018-10-16 19:45:53 +00:00
c expand imageinfo in C api, start on colorspace 2018-09-28 17:52:59 +00:00
codec Properly fill in memory in sampled RLE BMPs 2018-10-18 19:23:08 +00:00
compute Reland "remove deprecated SkRect::MakeFromIRect()" 2018-10-04 22:05:27 +00:00
core Reland: Widen internal API to support more complex YUV formats 2018-10-18 18:44:26 +00:00
effects Revert "converted AARectEffect to new FP system" 2018-10-15 20:43:26 +00:00
fonts move Sk{Test,Random}ScalerContext to tools 2017-11-10 17:02:20 +00:00
gpu Simplify atlas calculation for dimension only 2018-10-18 18:46:54 +00:00
image Reland: Widen internal API to support more complex YUV formats 2018-10-18 18:44:26 +00:00
images re-precate SkMatrix44::SkMatrix44() 2018-10-04 14:01:11 +00:00
jumper fix lowp gradients 2018-09-07 18:24:06 +00:00
lazy begin cleanup of malloc porting layer 2018-01-05 21:29:35 +00:00
opts trim off more bgra stages 2018-10-18 15:05:34 +00:00
pathops fix pathops fuzz 2018-10-18 17:41:55 +00:00
pdf SkPDF: be smarter about checking to see if a new font is needed. 2018-10-17 21:24:54 +00:00
ports Work around FreeType type change. 2018-10-09 14:56:19 +00:00
sfnt Improve name table handling. 2018-08-20 20:39:54 +00:00
shaders Always require a color space on picture-backed images 2018-10-18 15:13:39 +00:00
sksl Remove GrColor4f 2018-10-16 20:37:58 +00:00
svg Fix Fuchsia roll 2018-08-31 12:35:23 +00:00
utils Check for legit bounds in SkTriangulateSimplePolygon 2018-10-15 15:02:17 +00:00
xml Move SkNoncopyable to include/private. 2018-07-17 21:39:51 +00:00
xps SK_SUPPORT_LEGACY_DOCUMENT_FACTORY: clean up part 1/2 2018-09-21 19:50:40 +00:00