Welcome! Log In Create A New Profile

Advanced

[nginx] Stream: fixed possible integer overflow in rate limiting.

Valentin Bartenev
July 02, 2015 10:22AM
details: http://hg.nginx.org/nginx/rev/114d1f8cdcab
branches:
changeset: 6204:114d1f8cdcab
user: Valentin Bartenev <vbart@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;
}
}

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Stream: fixed possible integer overflow in rate limiting.

Valentin Bartenev 714 July 02, 2015 10:22AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 215
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready