summaryrefslogtreecommitdiffhomepage
path: root/src/event
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2017-07-17 17:23:51 +0300
committerValentin Bartenev <vbart@nginx.com>2017-07-17 17:23:51 +0300
commit9197a3c8741a8832e6f6ed24a72dc5b078d840fd (patch)
tree43e64c8410806c986a6b331cf4bba4b9898b5c86 /src/event
parent7b06d9c326f3e24a9d1402a5d3d4b539febdf64b (diff)
downloadnginx-9197a3c8741a8832e6f6ed24a72dc5b078d840fd.tar.gz
nginx-9197a3c8741a8832e6f6ed24a72dc5b078d840fd.tar.bz2
Parenthesized ASCII-related calculations.
This also fixes potential undefined behaviour in the range and slice filter modules, caused by local overflows of signed integers in expressions.
Diffstat (limited to 'src/event')
-rw-r--r--src/event/ngx_event_openssl_stapling.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/ngx_event_openssl_stapling.c b/src/event/ngx_event_openssl_stapling.c
index d332c112e..0bea5e74d 100644
--- a/src/event/ngx_event_openssl_stapling.c
+++ b/src/event/ngx_event_openssl_stapling.c
@@ -1486,7 +1486,7 @@ ngx_ssl_ocsp_parse_status_line(ngx_ssl_ocsp_ctx_t *ctx)
return NGX_ERROR;
}
- ctx->code = ctx->code * 10 + ch - '0';
+ ctx->code = ctx->code * 10 + (ch - '0');
if (++ctx->count == 3) {
state = sw_space_after_status;