[tor-commits] [tor-browser/tor-browser-78.13.0esr-11.0-2] Bug 1719146 - Use size_t in breakpad's Linux exception handler. r=gsvelto
    sysrqb at torproject.org 
    sysrqb at torproject.org
       
    Tue Aug 17 13:06:51 UTC 2021
    
    
  
commit 85c5352a179d3831a9ab3db1563bf8ccf1b953b0
Author: Emilio Cobos Ãlvarez <emilio at crisal.io>
Date:   Mon Jul 5 11:59:34 2021 +0000
    Bug 1719146 - Use size_t in breakpad's Linux exception handler. r=gsvelto
    
    Differential Revision: https://phabricator.services.mozilla.com/D119083
---
 .../crashreporter/breakpad-client/linux/handler/exception_handler.cc    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/toolkit/crashreporter/breakpad-client/linux/handler/exception_handler.cc b/toolkit/crashreporter/breakpad-client/linux/handler/exception_handler.cc
index c8509c2d5363..1365935ba51c 100644
--- a/toolkit/crashreporter/breakpad-client/linux/handler/exception_handler.cc
+++ b/toolkit/crashreporter/breakpad-client/linux/handler/exception_handler.cc
@@ -145,7 +145,7 @@ void InstallAlternateStackLocked() {
   // SIGSTKSZ may be too small to prevent the signal handlers from overrunning
   // the alternative stack. Ensure that the size of the alternative stack is
   // large enough.
-  static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
+  static const size_t kSigStackSize = std::max(size_t(16384), size_t(SIGSTKSZ));
 
   // Only set an alternative stack if there isn't already one, or if the current
   // one is too small.
    
    
More information about the tor-commits
mailing list