[tor-commits] [tor-browser/tor-browser-24.7.0esr-4.x-2] fixup! Backport two integer overflow patches.

mikeperry at torproject.org mikeperry at torproject.org
Fri Aug 29 01:31:35 UTC 2014


commit b19c32010424180d9e524503c90eb05344d39bd0
Author: Mike Perry <mikeperry-git at torproject.org>
Date:   Thu Aug 28 18:30:06 2014 -0700

    fixup! Backport two integer overflow patches.
    
    These are in the mozilla namespace.
---
 image/src/imgFrame.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/image/src/imgFrame.cpp b/image/src/imgFrame.cpp
index 33d1b3a..0e2ef3f 100644
--- a/image/src/imgFrame.cpp
+++ b/image/src/imgFrame.cpp
@@ -55,7 +55,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;



More information about the tor-commits mailing list