From cbf66a22130a1fd13285bb65d3a0d7ee6b4e8ab3 Mon Sep 17 00:00:00 2001 From: Leon Scroggins III Date: Fri, 16 Feb 2018 12:03:03 -0500 Subject: Ensure all rows of a gif are initialized Bug: oss-fuzz:6274 Even if a frame does not have enough LZW blocks to decode all rows, (which is unknown until we actually decode them), it is marked complete once there are no more LZW blocks. When decoding, even if we've decoded all LZW blocks, check fRowsDecoded to determine whether we've actually all the rows. Report the number of rows decoded so that SkCodec can fill in the remaining ones. Change-Id: I1d6e0c29e3c37649725836cf24a4a239e3266b76 Reviewed-on: https://skia-review.googlesource.com/106964 Commit-Queue: Leon Scroggins Reviewed-by: Mike Klein --- resources/invalid_images/ossfuzz6274.gif | Bin 0 -> 45 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 resources/invalid_images/ossfuzz6274.gif (limited to 'resources') diff --git a/resources/invalid_images/ossfuzz6274.gif b/resources/invalid_images/ossfuzz6274.gif new file mode 100644 index 0000000000..faa3b6e575 Binary files /dev/null and b/resources/invalid_images/ossfuzz6274.gif differ -- cgit v1.2.3