src/http/ngx_http_request.c:1775: error: Integer Overflow L2
  ([0, 9223372036854775800] + [0, 9]):signed64 by call to `ngx_atoof`.

src/http/ngx_http_request.c:1760:12: Call
1758. {
1759.     if (r->headers_in.server.len == 0
1760.         && ngx_http_set_virtual_server(r, &r->headers_in.server)
                 ^
1761.            == NGX_ERROR)
1762.     {

src/http/ngx_http_request.c:2035:10: Call
  2033. #endif
  2034. 
  2035.     rc = ngx_http_find_virtual_server(r->connection,
                 ^
  2036.                                       hc->addr_conf->virtual_names,
  2037.                                       host, r, &cscf);

src/http/ngx_http_request.c:2093:12: Call
    2091.     }
    2092. 
    2093.     cscf = ngx_hash_find_combined(&virtual_names->names,
                     ^
    2094.                                   ngx_hash_key(host->data, host->len),
    2095.                                   host->data, host->len);

src/http/ngx_http_request.c:1775:29: Call
1773.     if (r->headers_in.content_length) {
1774.         r->headers_in.content_length_n =
1775.                             ngx_atoof(r->headers_in.content_length->value.data,
                                  ^
1776.                                       r->headers_in.content_length->value.len);
1777. 

src/core/ngx_string.c:1022:5: <LHS trace>
1020.     }
1021. 
1022.     cutoff = NGX_MAX_OFF_T_VALUE / 10;
          ^
1023.     cutlim = NGX_MAX_OFF_T_VALUE % 10;
1024. 

src/core/ngx_string.c:1022:5: Assignment
  1020.     }
  1021. 
  1022.     cutoff = NGX_MAX_OFF_T_VALUE / 10;
            ^
  1023.     cutlim = NGX_MAX_OFF_T_VALUE % 10;
  1024. 

src/core/ngx_string.c:1013:1: <RHS trace>
1011. 
1012. 
1013. off_t
      ^
1014. ngx_atoof(u_char *line, size_t n)
1015. {

src/core/ngx_string.c:1013:1: Parameter `*line`
  1011. 
  1012. 
  1013. off_t
        ^
  1014. ngx_atoof(u_char *line, size_t n)
  1015. {

src/core/ngx_string.c:1034:9: Binary operation: ([0, 9223372036854775800] + [0, 9]):signed64 by call to `ngx_atoof` 
  1032.         }
  1033. 
  1034.         value = value * 10 + (*line - '0');
                ^
  1035.     }
  1036. 

off_t
ngx_atoof(u_char *line, size_t n)
{
    off_t  value, cutoff, cutlim;
    if (n == 0) {
        return NGX_ERROR;
    }
    cutoff = NGX_MAX_OFF_T_VALUE / 10;
    cutlim = NGX_MAX_OFF_T_VALUE % 10;
    for (value = 0; n--; line++) {
        if (*line < '0' || *line > '9') {
            return NGX_ERROR;
        }
        if (value >= cutoff && (value > cutoff || *line - '0' > cutlim)) {
            return NGX_ERROR;
        }
        value = value * 10 + (*line - '0');
    }
    return value;
}
['ngx_int_t\nngx_http_process_request_header(ngx_http_request_t *r)\n{\n    if (r->headers_in.server.len == 0\n        && ngx_http_set_virtual_server(r, &r->headers_in.server)\n           == NGX_ERROR)\n    {\n        return NGX_ERROR;\n    }\n    if (r->headers_in.host == NULL && r->http_version > NGX_HTTP_VERSION_10) {\n        ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,\n                   "client sent HTTP/1.1 request without \\"Host\\" header");\n        ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST);\n        return NGX_ERROR;\n    }\n    if (r->headers_in.content_length) {\n        r->headers_in.content_length_n =\n                            ngx_atoof(r->headers_in.content_length->value.data,\n                                      r->headers_in.content_length->value.len);\n        if (r->headers_in.content_length_n == NGX_ERROR) {\n            ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,\n                          "client sent invalid \\"Content-Length\\" header");\n            ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST);\n            return NGX_ERROR;\n        }\n    }\n    if (r->method & NGX_HTTP_TRACE) {\n        ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,\n                      "client sent TRACE method");\n        ngx_http_finalize_request(r, NGX_HTTP_NOT_ALLOWED);\n        return NGX_ERROR;\n    }\n    if (r->headers_in.transfer_encoding) {\n        if (r->headers_in.transfer_encoding->value.len == 7\n            && ngx_strncasecmp(r->headers_in.transfer_encoding->value.data,\n                               (u_char *) "chunked", 7) == 0)\n        {\n            r->headers_in.content_length = NULL;\n            r->headers_in.content_length_n = -1;\n            r->headers_in.chunked = 1;\n        } else if (r->headers_in.transfer_encoding->value.len != 8\n            || ngx_strncasecmp(r->headers_in.transfer_encoding->value.data,\n                               (u_char *) "identity", 8) != 0)\n        {\n            ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,\n                          "client sent unknown \\"Transfer-Encoding\\": \\"%V\\"",\n                          &r->headers_in.transfer_encoding->value);\n            ngx_http_finalize_request(r, NGX_HTTP_NOT_IMPLEMENTED);\n            return NGX_ERROR;\n        }\n    }\n    if (r->headers_in.connection_type == NGX_HTTP_CONNECTION_KEEP_ALIVE) {\n        if (r->headers_in.keep_alive) {\n            r->headers_in.keep_alive_n =\n                            ngx_atotm(r->headers_in.keep_alive->value.data,\n                                      r->headers_in.keep_alive->value.len);\n        }\n    }\n    return NGX_OK;\n}', 'static ngx_int_t\nngx_http_set_virtual_server(ngx_http_request_t *r, ngx_str_t *host)\n{\n    ngx_int_t                  rc;\n    ngx_http_connection_t     *hc;\n    ngx_http_core_loc_conf_t  *clcf;\n    ngx_http_core_srv_conf_t  *cscf;\n#if (NGX_SUPPRESS_WARN)\n    cscf = NULL;\n#endif\n    hc = r->http_connection;\n#if (NGX_HTTP_SSL && defined SSL_CTRL_SET_TLSEXT_HOSTNAME)\n    if (hc->ssl_servername) {\n        if (hc->ssl_servername->len == host->len\n            && ngx_strncmp(hc->ssl_servername->data,\n                           host->data, host->len) == 0)\n        {\n#if (NGX_PCRE)\n            if (hc->ssl_servername_regex\n                && ngx_http_regex_exec(r, hc->ssl_servername_regex,\n                                          hc->ssl_servername) != NGX_OK)\n            {\n                ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);\n                return NGX_ERROR;\n            }\n#endif\n            return NGX_OK;\n        }\n    }\n#endif\n    rc = ngx_http_find_virtual_server(r->connection,\n                                      hc->addr_conf->virtual_names,\n                                      host, r, &cscf);\n    if (rc == NGX_ERROR) {\n        ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);\n        return NGX_ERROR;\n    }\n#if (NGX_HTTP_SSL && defined SSL_CTRL_SET_TLSEXT_HOSTNAME)\n    if (hc->ssl_servername) {\n        ngx_http_ssl_srv_conf_t  *sscf;\n        if (rc == NGX_DECLINED) {\n            cscf = hc->addr_conf->default_server;\n            rc = NGX_OK;\n        }\n        sscf = ngx_http_get_module_srv_conf(cscf->ctx, ngx_http_ssl_module);\n        if (sscf->verify) {\n            ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,\n                          "client attempted to request the server name "\n                          "different from that one was negotiated");\n            ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST);\n            return NGX_ERROR;\n        }\n    }\n#endif\n    if (rc == NGX_DECLINED) {\n        return NGX_OK;\n    }\n    r->srv_conf = cscf->ctx->srv_conf;\n    r->loc_conf = cscf->ctx->loc_conf;\n    clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);\n    ngx_http_set_connection_log(r->connection, clcf->error_log);\n    return NGX_OK;\n}', 'static ngx_int_t\nngx_http_find_virtual_server(ngx_connection_t *c,\n    ngx_http_virtual_names_t *virtual_names, ngx_str_t *host,\n    ngx_http_request_t *r, ngx_http_core_srv_conf_t **cscfp)\n{\n    ngx_http_core_srv_conf_t  *cscf;\n    if (virtual_names == NULL) {\n        return NGX_DECLINED;\n    }\n    cscf = ngx_hash_find_combined(&virtual_names->names,\n                                  ngx_hash_key(host->data, host->len),\n                                  host->data, host->len);\n    if (cscf) {\n        *cscfp = cscf;\n        return NGX_OK;\n    }\n#if (NGX_PCRE)\n    if (host->len && virtual_names->nregex) {\n        ngx_int_t                n;\n        ngx_uint_t               i;\n        ngx_http_server_name_t  *sn;\n        sn = virtual_names->regex;\n#if (NGX_HTTP_SSL && defined SSL_CTRL_SET_TLSEXT_HOSTNAME)\n        if (r == NULL) {\n            ngx_http_connection_t  *hc;\n            for (i = 0; i < virtual_names->nregex; i++) {\n                n = ngx_regex_exec(sn[i].regex->regex, host, NULL, 0);\n                if (n == NGX_REGEX_NO_MATCHED) {\n                    continue;\n                }\n                if (n >= 0) {\n                    hc = c->data;\n                    hc->ssl_servername_regex = sn[i].regex;\n                    *cscfp = sn[i].server;\n                    return NGX_OK;\n                }\n                ngx_log_error(NGX_LOG_ALERT, c->log, 0,\n                              ngx_regex_exec_n " failed: %i "\n                              "on \\"%V\\" using \\"%V\\"",\n                              n, host, &sn[i].regex->name);\n                return NGX_ERROR;\n            }\n            return NGX_DECLINED;\n        }\n#endif\n        for (i = 0; i < virtual_names->nregex; i++) {\n            n = ngx_http_regex_exec(r, sn[i].regex, host);\n            if (n == NGX_DECLINED) {\n                continue;\n            }\n            if (n == NGX_OK) {\n                *cscfp = sn[i].server;\n                return NGX_OK;\n            }\n            return NGX_ERROR;\n        }\n    }\n#endif\n    return NGX_DECLINED;\n}', "off_t\nngx_atoof(u_char *line, size_t n)\n{\n    off_t  value, cutoff, cutlim;\n    if (n == 0) {\n        return NGX_ERROR;\n    }\n    cutoff = NGX_MAX_OFF_T_VALUE / 10;\n    cutlim = NGX_MAX_OFF_T_VALUE % 10;\n    for (value = 0; n--; line++) {\n        if (*line < '0' || *line > '9') {\n            return NGX_ERROR;\n        }\n        if (value >= cutoff && (value > cutoff || *line - '0' > cutlim)) {\n            return NGX_ERROR;\n        }\n        value = value * 10 + (*line - '0');\n    }\n    return value;\n}"]