apps/s_server.c:1627: error: BUFFER_OVERRUN_L3
  Offset: [1, 65535] Size: [1, +oo] by call to `next_protos_parse`.
Showing all 17 steps of the trace


apps/s_server.c:1594:18: Call
1592.           }
1593.   
1594.           s_cert = load_cert(s_cert_file, s_cert_format,
                         ^
1595.                              "server certificate file");
1596.   

apps/apps.c:699:9: Call
  697.       if (format == FORMAT_HTTP) {
  698.   #ifndef OPENSSL_NO_OCSP
  699.           load_cert_crl_http(file, &x, NULL);
                 ^
  700.   #endif
  701.           return x;

apps/apps.c:650:10: Call
    648.       OCSP_REQ_CTX *rctx = NULL;
    649.       int use_ssl, rv = 0;
    650.       if (!OCSP_parse_url(url, &host, &port, &path, &use_ssl))
                    ^
    651.           goto err;
    652.       if (use_ssl) {

crypto/ocsp/ocsp_lib.c:195:5: Assignment
      193.           goto parse_err;
      194.   
      195.       *(p++) = '\0';
                 ^
      196.   
      197.       if (strcmp(buf, "http") == 0) {

apps/s_server.c:1627:27: Call
1625.       if (next_proto_neg_in) {
1626.           size_t len;
1627.           next_proto.data = next_protos_parse(&len, next_proto_neg_in);
                                  ^
1628.           if (next_proto.data == NULL)
1629.               goto end;

apps/apps.c:1974:10: <Offset trace>
1972.   
1973.       out = app_malloc(strlen(in) + 1, "NPN buffer");
1974.       for (i = 0; i <= len; ++i) {
                 ^
1975.           if (i == len || in[i] == ',') {
1976.               if (i - start > 255) {

apps/apps.c:1974:10: Assignment
  1972.   
  1973.       out = app_malloc(strlen(in) + 1, "NPN buffer");
  1974.       for (i = 0; i <= len; ++i) {
                   ^
  1975.           if (i == len || in[i] == ',') {
  1976.               if (i - start > 255) {

apps/apps.c:1963:1: <Length trace>
1961.    *   returns: a malloced buffer or NULL on failure.
1962.    */
1963. > unsigned char *next_protos_parse(size_t *outlen, const char *in)
1964.   {
1965.       size_t len;

apps/apps.c:1963:1: Parameter `in->strlen`
  1961.    *   returns: a malloced buffer or NULL on failure.
  1962.    */
  1963. > unsigned char *next_protos_parse(size_t *outlen, const char *in)
  1964.   {
  1965.       size_t len;

apps/apps.c:1973:11: Call
  1971.           return NULL;
  1972.   
  1973.       out = app_malloc(strlen(in) + 1, "NPN buffer");
                    ^
  1974.       for (i = 0; i <= len; ++i) {
  1975.           if (i == len || in[i] == ',') {

apps/apps.c:1006:1: Parameter `sz`
    1004.   }
    1005.   
    1006. > void* app_malloc(int sz, const char *what)
    1007.   {
    1008.       void *vp = OPENSSL_malloc(sz);

apps/apps.c:1008:16: Call
    1006.   void* app_malloc(int sz, const char *what)
    1007.   {
    1008.       void *vp = OPENSSL_malloc(sz);
                           ^
    1009.   
    1010.       if (vp == NULL) {

crypto/mem.c:127:9: Assignment
      125.   
      126.       if (num <= 0)
      127.           return NULL;
                     ^
      128.   
      129.       allow_customize = 0;

apps/apps.c:1008:5: Assignment
    1006.   void* app_malloc(int sz, const char *what)
    1007.   {
    1008.       void *vp = OPENSSL_malloc(sz);
                ^
    1009.   
    1010.       if (vp == NULL) {

apps/apps.c:1016:5: Assignment
    1014.           exit(1);
    1015.       }
    1016.       return vp;
                ^
    1017.   }
    1018.   

apps/apps.c:1973:5: Assignment
  1971.           return NULL;
  1972.   
  1973.       out = app_malloc(strlen(in) + 1, "NPN buffer");
              ^
  1974.       for (i = 0; i <= len; ++i) {
  1975.           if (i == len || in[i] == ',') {

apps/apps.c:1983:13: Array access: Offset: [1, 65535] Size: [1, +oo] by call to `next_protos_parse` 
  1981.               start = i + 1;
  1982.           } else
  1983.               out[i + 1] = in[i];
                      ^
  1984.       }
  1985.   
