Mercurial > hg > nginx
comparison src/event/ngx_event_openssl_stapling.c @ 7067:e3723f2a11b7
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.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 17 Jul 2017 17:23:51 +0300 |
parents | 25d0d6dabe00 |
children | edf5cd6c56fa |
comparison
equal
deleted
inserted
replaced
7066:a27e0c7e198c | 7067:e3723f2a11b7 |
---|---|
1484 | 1484 |
1485 if (ch < '0' || ch > '9') { | 1485 if (ch < '0' || ch > '9') { |
1486 return NGX_ERROR; | 1486 return NGX_ERROR; |
1487 } | 1487 } |
1488 | 1488 |
1489 ctx->code = ctx->code * 10 + ch - '0'; | 1489 ctx->code = ctx->code * 10 + (ch - '0'); |
1490 | 1490 |
1491 if (++ctx->count == 3) { | 1491 if (++ctx->count == 3) { |
1492 state = sw_space_after_status; | 1492 state = sw_space_after_status; |
1493 ctx->header_start = p - 2; | 1493 ctx->header_start = p - 2; |
1494 } | 1494 } |