mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
image: sync with 8e42fccca6
This commit is contained in:
parent
f2cfb9997e
commit
6ec59e7984
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue