From d780c9db3fb365065ee920eef2db74d9ac115838 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 17 Oct 2018 23:36:26 +0200 Subject: [PATCH] tif_webp.c: fix previous commit that broke scanline decoding --- libtiff/tif_webp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtiff/tif_webp.c b/libtiff/tif_webp.c index 17a6d387..0753c00f 100644 --- a/libtiff/tif_webp.c +++ b/libtiff/tif_webp.c @@ -159,7 +159,7 @@ TWebPDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) buf = WebPIDecGetRGB(sp->psDecoder, ¤t_y, NULL, NULL, &stride); if ((buf != NULL) && - (occ == stride * (current_y - sp->last_y))) { + (occ <= stride * (current_y - sp->last_y))) { memcpy(op, buf + (sp->last_y * stride), occ);