mirror of
https://github.com/nginx/nginx.git
synced 2026-07-30 08:08:24 -05:00
Stream: fixed possible integer overflow in rate limiting.
This commit is contained in:
@@ -1062,7 +1062,7 @@ ngx_stream_proxy_process(ngx_stream_session_t *s, ngx_uint_t from_upstream,
|
||||
break;
|
||||
}
|
||||
|
||||
if (size > (size_t) limit) {
|
||||
if ((off_t) size > limit) {
|
||||
size = (size_t) limit;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user