Blame SOURCES/rhbz-1956829.patch

6c61f8
diff --git a/src/dec/buffer_dec.c b/src/dec/buffer_dec.c
6c61f8
index 75eb3c4..3cd94eb 100644
6c61f8
--- a/src/dec/buffer_dec.c
6c61f8
+++ b/src/dec/buffer_dec.c
6c61f8
@@ -74,7 +74,8 @@
6c61f8
   } else {    // RGB checks
6c61f8
     const WebPRGBABuffer* const buf = &buffer->u.RGBA;
6c61f8
     const int stride = abs(buf->stride);
6c61f8
-    const uint64_t size = MIN_BUFFER_SIZE(width, height, stride);
6c61f8
+    const uint64_t size =
6c61f8
+        MIN_BUFFER_SIZE(width * kModeBpp[mode], height, stride);
6c61f8
     ok &= (size <= buf->size);
6c61f8
     ok &= (stride >= width * kModeBpp[mode]);
6c61f8
     ok &= (buf->rgba != NULL);
6c61f8