Skip to content

Commit

Permalink
fixup! Backport two integer overflow patches.
Browse files Browse the repository at this point in the history
These are in the mozilla namespace.
  • Loading branch information
Mike Perry authored and arthuredelstein committed Aug 29, 2014
1 parent a5d3c52 commit 41d164f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image/src/imgFrame.cpp
Expand Up @@ -94,7 +94,7 @@ static bool AllowedImageSize(int32_t aWidth, int32_t aHeight)
}

// check to make sure we don't overflow a 32-bit
CheckedInt32 requiredBytes = CheckedInt32(aWidth) * CheckedInt32(aHeight) * 4;
mozilla::CheckedInt32 requiredBytes = mozilla::CheckedInt32(aWidth) * mozilla::CheckedInt32(aHeight) * 4;
if (MOZ_UNLIKELY(!requiredBytes.isValid())) {
NS_WARNING("width or height too large");
return false;
Expand Down

0 comments on commit 41d164f

Please sign in to comment.