apps/s_server.c:1588: 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:1555:18: Call
1553.           }
1554.   
1555.           s_cert = load_cert(s_cert_file, s_cert_format,
                         ^
1556.                              "server certificate file");
1557.   

apps/apps.c:683:9: Call
  681.   
  682.       if (format == FORMAT_HTTP) {
  683.           load_cert_crl_http(file, &x, NULL);
                 ^
  684.           return x;
  685.       }

apps/apps.c:636:10: Call
    634.       OCSP_REQ_CTX *rctx = NULL;
    635.       int use_ssl, rv = 0;
    636.       if (!OCSP_parse_url(url, &host, &port, &path, &use_ssl))
                    ^
    637.           goto err;
    638.       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:1588:27: Call
1586.       if (next_proto_neg_in) {
1587.           unsigned short len;
1588.           next_proto.data = next_protos_parse(&len, next_proto_neg_in);
                                  ^
1589.           if (next_proto.data == NULL)
1590.               goto end;

apps/apps.c:1955:10: <Offset trace>
1953.   
1954.       out = app_malloc(strlen(in) + 1, "NPN buffer");
1955.       for (i = 0; i <= len; ++i) {
                 ^
1956.           if (i == len || in[i] == ',') {
1957.               if (i - start > 255) {

apps/apps.c:1955:10: Assignment
  1953.   
  1954.       out = app_malloc(strlen(in) + 1, "NPN buffer");
  1955.       for (i = 0; i <= len; ++i) {
                   ^
  1956.           if (i == len || in[i] == ',') {
  1957.               if (i - start > 255) {

apps/apps.c:1944:1: <Length trace>
1942.    *   returns: a malloced buffer or NULL on failure.
1943.    */
1944. > unsigned char *next_protos_parse(unsigned short *outlen, const char *in)
1945.   {
1946.       size_t len;

apps/apps.c:1944:1: Parameter `in->strlen`
  1942.    *   returns: a malloced buffer or NULL on failure.
  1943.    */
  1944. > unsigned char *next_protos_parse(unsigned short *outlen, const char *in)
  1945.   {
  1946.       size_t len;

apps/apps.c:1954:11: Call
  1952.           return NULL;
  1953.   
  1954.       out = app_malloc(strlen(in) + 1, "NPN buffer");
                    ^
  1955.       for (i = 0; i <= len; ++i) {
  1956.           if (i == len || in[i] == ',') {

apps/apps.c:987:1: Parameter `sz`
    985.   }
    986.   
    987. > void* app_malloc(int sz, const char *what)
    988.   {
    989.       void *vp = OPENSSL_malloc(sz);

apps/apps.c:989:16: Call
    987.   void* app_malloc(int sz, const char *what)
    988.   {
    989.       void *vp = OPENSSL_malloc(sz);
                          ^
    990.   
    991.       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:989:5: Assignment
    987.   void* app_malloc(int sz, const char *what)
    988.   {
    989.       void *vp = OPENSSL_malloc(sz);
               ^
    990.   
    991.       if (vp == NULL) {

apps/apps.c:997:5: Assignment
    995.           exit(1);
    996.       }
    997.       return vp;
                ^
    998.   }
    999.   

apps/apps.c:1954:5: Assignment
  1952.           return NULL;
  1953.   
  1954.       out = app_malloc(strlen(in) + 1, "NPN buffer");
              ^
  1955.       for (i = 0; i <= len; ++i) {
  1956.           if (i == len || in[i] == ',') {

apps/apps.c:1964:13: Array access: Offset: [1, 65535] Size: [1, +oo] by call to `next_protos_parse` 
  1962.               start = i + 1;
  1963.           } else
  1964.               out[i + 1] = in[i];
                      ^
  1965.       }
  1966.   
