src/http/modules/ngx_http_uwsgi_module.c:2101: error: Integer Overflow L2
  ([0, 9223372036854775800] + [0, 9]):signed64 by call to `ngx_http_upstream_add`.

src/http/modules/ngx_http_uwsgi_module.c:2095:5: Unknown value from: __infer_skip
2093.     }
2094. 
2095.     ngx_memzero(&u, sizeof(ngx_url_t));
          ^
2096. 
2097.     u.url.len = url->len - add;

src/http/modules/ngx_http_uwsgi_module.c:2101:31: Call
2099.     u.no_resolve = 1;
2100. 
2101.     uwcf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0);
                                    ^
2102.     if (uwcf->upstream.upstream == NULL) {
2103.         return NGX_CONF_ERROR;

src/http/ngx_http_upstream.c:5652:1: Parameter `*u->url.data`
  5650. 
  5651. 
  5652. ngx_http_upstream_srv_conf_t *
        ^
  5653. ngx_http_upstream_add(ngx_conf_t *cf, ngx_url_t *u, ngx_uint_t flags)
  5654. {

src/http/ngx_http_upstream.c:5662:13: Call
  5660.     if (!(flags & NGX_HTTP_UPSTREAM_CREATE)) {
  5661. 
  5662.         if (ngx_parse_url(cf->pool, u) != NGX_OK) {
                    ^
  5663.             if (u->err) {
  5664.                 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,

src/core/ngx_inet.c:528:1: Parameter `*u->url.data`
    526. 
    527. 
    528. ngx_int_t
         ^
    529. ngx_parse_url(ngx_pool_t *pool, ngx_url_t *u)
    530. {

src/core/ngx_inet.c:545:12: Call
    543.     }
    544. 
    545.     return ngx_parse_inet_url(pool, u);
                    ^
    546. }
    547. 

src/core/ngx_inet.c:627:1: Parameter `*u->url.data`
      625. 
      626. 
      627. static ngx_int_t
           ^
      628. ngx_parse_inet_url(ngx_pool_t *pool, ngx_url_t *u)
      629. {

src/core/ngx_inet.c:648:12: Call
      646.     last = host + u->url.len;
      647. 
      648.     port = ngx_strlchr(host, last, ':');
                      ^
      649. 
      650.     uri = ngx_strlchr(host, last, '/');

src/core/ngx_string.h:65:1: Parameter `c`
        63. #define ngx_strchr(s1, c)   strchr((const char *) s1, (int) c)
        64. 
        65. static ngx_inline u_char *
            ^
        66. ngx_strlchr(u_char *p, u_char *last, u_char c)
        67. {

src/core/ngx_inet.c:650:11: Call
      648.     port = ngx_strlchr(host, last, ':');
      649. 
      650.     uri = ngx_strlchr(host, last, '/');
                     ^
      651. 
      652.     args = ngx_strlchr(host, last, '?');

src/core/ngx_string.h:65:1: Parameter `c`
        63. #define ngx_strchr(s1, c)   strchr((const char *) s1, (int) c)
        64. 
        65. static ngx_inline u_char *
            ^
        66. ngx_strlchr(u_char *p, u_char *last, u_char c)
        67. {

src/core/ngx_inet.c:652:12: Call
      650.     uri = ngx_strlchr(host, last, '/');
      651. 
      652.     args = ngx_strlchr(host, last, '?');
                      ^
      653. 
      654.     if (args) {

src/core/ngx_string.h:65:1: Parameter `c`
        63. #define ngx_strchr(s1, c)   strchr((const char *) s1, (int) c)
        64. 
        65. static ngx_inline u_char *
            ^
        66. ngx_strlchr(u_char *p, u_char *last, u_char c)
        67. {

src/core/ngx_inet.c:681:13: Call
      679.         len = last - port;
      680. 
      681.         n = ngx_atoi(port, len);
                       ^
      682. 
      683.         if (n < 1 || n > 65535) {

src/core/ngx_string.c:910:5: <LHS trace>
908.     }
909. 
910.     cutoff = NGX_MAX_INT_T_VALUE / 10;
         ^
911.     cutlim = NGX_MAX_INT_T_VALUE % 10;
912. 

src/core/ngx_string.c:910:5: Assignment
        908.     }
        909. 
        910.     cutoff = NGX_MAX_INT_T_VALUE / 10;
                 ^
        911.     cutlim = NGX_MAX_INT_T_VALUE % 10;
        912. 

src/core/ngx_string.c:901:1: <RHS trace>
899. 
900. 
901. ngx_int_t
     ^
902. ngx_atoi(u_char *line, size_t n)
903. {

src/core/ngx_string.c:901:1: Parameter `*line`
        899. 
        900. 
        901. ngx_int_t
             ^
        902. ngx_atoi(u_char *line, size_t n)
        903. {

src/core/ngx_string.c:922:9: Binary operation: ([0, 9223372036854775800] + [0, 9]):signed64 by call to `ngx_http_upstream_add` 
        920.         }
        921. 
        922.         value = value * 10 + (*line - '0');
                     ^
        923.     }
        924. 

ngx_int_t
ngx_atoi(u_char *line, size_t n)
{
    ngx_int_t  value, cutoff, cutlim;
    if (n == 0) {
        return NGX_ERROR;
    }
    cutoff = NGX_MAX_INT_T_VALUE / 10;
    cutlim = NGX_MAX_INT_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;
}
['static char *\nngx_http_uwsgi_pass(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)\n{\n    ngx_http_uwsgi_loc_conf_t *uwcf = conf;\n    size_t                      add;\n    ngx_url_t                   u;\n    ngx_str_t                  *value, *url;\n    ngx_uint_t                  n;\n    ngx_http_core_loc_conf_t   *clcf;\n    ngx_http_script_compile_t   sc;\n    if (uwcf->upstream.upstream || uwcf->uwsgi_lengths) {\n        return "is duplicate";\n    }\n    clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module);\n    clcf->handler = ngx_http_uwsgi_handler;\n    value = cf->args->elts;\n    url = &value[1];\n    n = ngx_http_script_variables_count(url);\n    if (n) {\n        ngx_memzero(&sc, sizeof(ngx_http_script_compile_t));\n        sc.cf = cf;\n        sc.source = url;\n        sc.lengths = &uwcf->uwsgi_lengths;\n        sc.values = &uwcf->uwsgi_values;\n        sc.variables = n;\n        sc.complete_lengths = 1;\n        sc.complete_values = 1;\n        if (ngx_http_script_compile(&sc) != NGX_OK) {\n            return NGX_CONF_ERROR;\n        }\n#if (NGX_HTTP_SSL)\n        uwcf->ssl = 1;\n#endif\n        return NGX_CONF_OK;\n    }\n    if (ngx_strncasecmp(url->data, (u_char *) "uwsgi://", 8) == 0) {\n        add = 8;\n    } else if (ngx_strncasecmp(url->data, (u_char *) "suwsgi://", 9) == 0) {\n#if (NGX_HTTP_SSL)\n        add = 9;\n        uwcf->ssl = 1;\n#else\n        ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,\n                           "suwsgi protocol requires SSL support");\n        return NGX_CONF_ERROR;\n#endif\n    } else {\n        add = 0;\n    }\n    ngx_memzero(&u, sizeof(ngx_url_t));\n    u.url.len = url->len - add;\n    u.url.data = url->data + add;\n    u.no_resolve = 1;\n    uwcf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0);\n    if (uwcf->upstream.upstream == NULL) {\n        return NGX_CONF_ERROR;\n    }\n    if (clcf->name.data[clcf->name.len - 1] == \'/\') {\n        clcf->auto_redirect = 1;\n    }\n    return NGX_CONF_OK;\n}', 'ngx_http_upstream_srv_conf_t *\nngx_http_upstream_add(ngx_conf_t *cf, ngx_url_t *u, ngx_uint_t flags)\n{\n    ngx_uint_t                      i;\n    ngx_http_upstream_server_t     *us;\n    ngx_http_upstream_srv_conf_t   *uscf, **uscfp;\n    ngx_http_upstream_main_conf_t  *umcf;\n    if (!(flags & NGX_HTTP_UPSTREAM_CREATE)) {\n        if (ngx_parse_url(cf->pool, u) != NGX_OK) {\n            if (u->err) {\n                ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,\n                                   "%s in upstream \\"%V\\"", u->err, &u->url);\n            }\n            return NULL;\n        }\n    }\n    umcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_upstream_module);\n    uscfp = umcf->upstreams.elts;\n    for (i = 0; i < umcf->upstreams.nelts; i++) {\n        if (uscfp[i]->host.len != u->host.len\n            || ngx_strncasecmp(uscfp[i]->host.data, u->host.data, u->host.len)\n               != 0)\n        {\n            continue;\n        }\n        if ((flags & NGX_HTTP_UPSTREAM_CREATE)\n             && (uscfp[i]->flags & NGX_HTTP_UPSTREAM_CREATE))\n        {\n            ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,\n                               "duplicate upstream \\"%V\\"", &u->host);\n            return NULL;\n        }\n        if ((uscfp[i]->flags & NGX_HTTP_UPSTREAM_CREATE) && !u->no_port) {\n            ngx_conf_log_error(NGX_LOG_WARN, cf, 0,\n                               "upstream \\"%V\\" may not have port %d",\n                               &u->host, u->port);\n            return NULL;\n        }\n        if ((flags & NGX_HTTP_UPSTREAM_CREATE) && !uscfp[i]->no_port) {\n            ngx_log_error(NGX_LOG_WARN, cf->log, 0,\n                          "upstream \\"%V\\" may not have port %d in %s:%ui",\n                          &u->host, uscfp[i]->port,\n                          uscfp[i]->file_name, uscfp[i]->line);\n            return NULL;\n        }\n        if (uscfp[i]->port && u->port\n            && uscfp[i]->port != u->port)\n        {\n            continue;\n        }\n        if (uscfp[i]->default_port && u->default_port\n            && uscfp[i]->default_port != u->default_port)\n        {\n            continue;\n        }\n        if (flags & NGX_HTTP_UPSTREAM_CREATE) {\n            uscfp[i]->flags = flags;\n        }\n        return uscfp[i];\n    }\n    uscf = ngx_pcalloc(cf->pool, sizeof(ngx_http_upstream_srv_conf_t));\n    if (uscf == NULL) {\n        return NULL;\n    }\n    uscf->flags = flags;\n    uscf->host = u->host;\n    uscf->file_name = cf->conf_file->file.name.data;\n    uscf->line = cf->conf_file->line;\n    uscf->port = u->port;\n    uscf->default_port = u->default_port;\n    uscf->no_port = u->no_port;\n    if (u->naddrs == 1 && (u->port || u->family == AF_UNIX)) {\n        uscf->servers = ngx_array_create(cf->pool, 1,\n                                         sizeof(ngx_http_upstream_server_t));\n        if (uscf->servers == NULL) {\n            return NULL;\n        }\n        us = ngx_array_push(uscf->servers);\n        if (us == NULL) {\n            return NULL;\n        }\n        ngx_memzero(us, sizeof(ngx_http_upstream_server_t));\n        us->addrs = u->addrs;\n        us->naddrs = 1;\n    }\n    uscfp = ngx_array_push(&umcf->upstreams);\n    if (uscfp == NULL) {\n        return NULL;\n    }\n    *uscfp = uscf;\n    return uscf;\n}', 'ngx_int_t\nngx_parse_url(ngx_pool_t *pool, ngx_url_t *u)\n{\n    u_char  *p;\n    size_t   len;\n    p = u->url.data;\n    len = u->url.len;\n    if (len >= 5 && ngx_strncasecmp(p, (u_char *) "unix:", 5) == 0) {\n        return ngx_parse_unix_domain_url(pool, u);\n    }\n    if (len && p[0] == \'[\') {\n        return ngx_parse_inet6_url(pool, u);\n    }\n    return ngx_parse_inet_url(pool, u);\n}', 'static ngx_int_t\nngx_parse_inet_url(ngx_pool_t *pool, ngx_url_t *u)\n{\n    u_char               *p, *host, *port, *last, *uri, *args;\n    size_t                len;\n    ngx_int_t             n;\n    struct sockaddr_in   *sin;\n#if (NGX_HAVE_INET6)\n    struct sockaddr_in6  *sin6;\n#endif\n    u->socklen = sizeof(struct sockaddr_in);\n    sin = (struct sockaddr_in *) &u->sockaddr;\n    sin->sin_family = AF_INET;\n    u->family = AF_INET;\n    host = u->url.data;\n    last = host + u->url.len;\n    port = ngx_strlchr(host, last, \':\');\n    uri = ngx_strlchr(host, last, \'/\');\n    args = ngx_strlchr(host, last, \'?\');\n    if (args) {\n        if (uri == NULL || args < uri) {\n            uri = args;\n        }\n    }\n    if (uri) {\n        if (u->listen || !u->uri_part) {\n            u->err = "invalid host";\n            return NGX_ERROR;\n        }\n        u->uri.len = last - uri;\n        u->uri.data = uri;\n        last = uri;\n        if (uri < port) {\n            port = NULL;\n        }\n    }\n    if (port) {\n        port++;\n        len = last - port;\n        n = ngx_atoi(port, len);\n        if (n < 1 || n > 65535) {\n            u->err = "invalid port";\n            return NGX_ERROR;\n        }\n        u->port = (in_port_t) n;\n        sin->sin_port = htons((in_port_t) n);\n        u->port_text.len = len;\n        u->port_text.data = port;\n        last = port - 1;\n    } else {\n        if (uri == NULL) {\n            if (u->listen) {\n                n = ngx_atoi(host, last - host);\n                if (n != NGX_ERROR) {\n                    if (n < 1 || n > 65535) {\n                        u->err = "invalid port";\n                        return NGX_ERROR;\n                    }\n                    u->port = (in_port_t) n;\n                    sin->sin_port = htons((in_port_t) n);\n                    u->port_text.len = last - host;\n                    u->port_text.data = host;\n                    u->wildcard = 1;\n                    return NGX_OK;\n                }\n            }\n        }\n        u->no_port = 1;\n        u->port = u->default_port;\n        sin->sin_port = htons(u->default_port);\n    }\n    len = last - host;\n    if (len == 0) {\n        u->err = "no host";\n        return NGX_ERROR;\n    }\n    u->host.len = len;\n    u->host.data = host;\n    if (u->listen && len == 1 && *host == \'*\') {\n        sin->sin_addr.s_addr = INADDR_ANY;\n        u->wildcard = 1;\n        return NGX_OK;\n    }\n    sin->sin_addr.s_addr = ngx_inet_addr(host, len);\n    if (sin->sin_addr.s_addr != INADDR_NONE) {\n        if (sin->sin_addr.s_addr == INADDR_ANY) {\n            u->wildcard = 1;\n        }\n        u->naddrs = 1;\n        u->addrs = ngx_pcalloc(pool, sizeof(ngx_addr_t));\n        if (u->addrs == NULL) {\n            return NGX_ERROR;\n        }\n        sin = ngx_pcalloc(pool, sizeof(struct sockaddr_in));\n        if (sin == NULL) {\n            return NGX_ERROR;\n        }\n        ngx_memcpy(sin, u->sockaddr, sizeof(struct sockaddr_in));\n        u->addrs[0].sockaddr = (struct sockaddr *) sin;\n        u->addrs[0].socklen = sizeof(struct sockaddr_in);\n        p = ngx_pnalloc(pool, u->host.len + sizeof(":65535") - 1);\n        if (p == NULL) {\n            return NGX_ERROR;\n        }\n        u->addrs[0].name.len = ngx_sprintf(p, "%V:%d",\n                                           &u->host, u->port) - p;\n        u->addrs[0].name.data = p;\n        return NGX_OK;\n    }\n    if (u->no_resolve) {\n        return NGX_OK;\n    }\n    if (ngx_inet_resolve_host(pool, u) != NGX_OK) {\n        return NGX_ERROR;\n    }\n    u->family = u->addrs[0].sockaddr->sa_family;\n    u->socklen = u->addrs[0].socklen;\n    ngx_memcpy(u->sockaddr, u->addrs[0].sockaddr, u->addrs[0].socklen);\n    switch (u->family) {\n#if (NGX_HAVE_INET6)\n    case AF_INET6:\n        sin6 = (struct sockaddr_in6 *) &u->sockaddr;\n        if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) {\n            u->wildcard = 1;\n        }\n        break;\n#endif\n    default:\n        sin = (struct sockaddr_in *) &u->sockaddr;\n        if (sin->sin_addr.s_addr == INADDR_ANY) {\n            u->wildcard = 1;\n        }\n        break;\n    }\n    return NGX_OK;\n}', 'static ngx_inline u_char *\nngx_strlchr(u_char *p, u_char *last, u_char c)\n{\n    while (p < last) {\n        if (*p == c) {\n            return p;\n        }\n        p++;\n    }\n    return NULL;\n}', "ngx_int_t\nngx_atoi(u_char *line, size_t n)\n{\n    ngx_int_t  value, cutoff, cutlim;\n    if (n == 0) {\n        return NGX_ERROR;\n    }\n    cutoff = NGX_MAX_INT_T_VALUE / 10;\n    cutlim = NGX_MAX_INT_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}"]