[nginx] Stream: fixed possible integer overflow in rate limiting.
    Valentin Bartenev 
    vbart at nginx.com
       
    Thu Jul  2 14:21:00 UTC 2015
    
    
  
details:   http://hg.nginx.org/nginx/rev/114d1f8cdcab
branches:  
changeset: 6204:114d1f8cdcab
user:      Valentin Bartenev <vbart at nginx.com>
date:      Thu Jul 02 17:20:29 2015 +0300
description:
Stream: fixed possible integer overflow in rate limiting.
diffstat:
 src/stream/ngx_stream_proxy_module.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r fdfdcad62875 -r 114d1f8cdcab src/stream/ngx_stream_proxy_module.c
--- a/src/stream/ngx_stream_proxy_module.c	Thu Jul 02 17:15:32 2015 +0300
+++ b/src/stream/ngx_stream_proxy_module.c	Thu Jul 02 17:20:29 2015 +0300
@@ -1062,7 +1062,7 @@ ngx_stream_proxy_process(ngx_stream_sess
                     break;
                 }
 
-                if (size > (size_t) limit) {
+                if ((off_t) size > limit) {
                     size = (size_t) limit;
                 }
             }
    
    
More information about the nginx-devel
mailing list