Blame SOURCES/rhbz-1956919.patch

9cd9f3
diff -up libwebp-0.3.0/src/mux/muxread.c.rhbz-1956919 libwebp-0.3.0/src/mux/muxread.c
9cd9f3
--- libwebp-0.3.0/src/mux/muxread.c.rhbz-1956919	2021-05-27 09:52:07.953914353 +0200
9cd9f3
+++ libwebp-0.3.0/src/mux/muxread.c	2021-05-27 09:52:59.325863123 +0200
9cd9f3
@@ -118,6 +118,7 @@ static int MuxImageParse(const WebPChunk
9cd9f3
         wpi->is_partial_ = 1;  // Waiting for a VP8 chunk.
9cd9f3
         break;
9cd9f3
       case WEBP_CHUNK_IMAGE:
9cd9f3
+        if (wpi->img_ != NULL) goto Fail;  // Only 1 image chunk allowed.
9cd9f3
         if (ChunkSetNth(&subchunk, &wpi->img_, 1) != WEBP_MUX_OK) goto Fail;
9cd9f3
         wpi->is_partial_ = 0;  // wpi is completely filled.
9cd9f3
         break;