mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 13:58:49 +00:00
image: sync with https://repo.palemoon.org/MoonchildProductions/UXP/commit/8e42fccca66d06b664ecc3c7345dc787a26ef4d9
This commit is contained in:
+1
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user