mirror of
https://github.com/nginx/nginx.git
synced 2026-09-04 12:28:20 +00:00
Stream: fixed possible integer overflow in rate limiting.
This commit is contained in:
parent
035732696d
commit
cd17f869cf
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue