From 6ec59e79847133ced52aa66b4bdc9ca24f6c1e5b Mon Sep 17 00:00:00 2001 From: roytam1 Date: Tue, 31 May 2022 09:36:20 +0800 Subject: [PATCH] image: sync with https://repo.palemoon.org/MoonchildProductions/UXP/commit/8e42fccca66d06b664ecc3c7345dc787a26ef4d9 --- image/imgFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/imgFrame.cpp b/image/imgFrame.cpp index 6fd1a69b61..88cef68bf9 100644 --- a/image/imgFrame.cpp +++ b/image/imgFrame.cpp @@ -123,7 +123,7 @@ AllowedImageSize(int32_t aWidth, int32_t aHeight) return false; } - // check to make sure we don't overflow a 32-bit + // check to make sure we don't overflow 32-bit size for RGBA CheckedInt32 requiredBytes = CheckedInt32(aWidth) * CheckedInt32(aHeight) * 4; if (MOZ_UNLIKELY(!requiredBytes.isValid())) { NS_WARNING("width or height too large");