test/sslapitest.c:4541: error: BUFFER_OVERRUN_L1
  Offset: -1 Size: 1024 by call to `SSL_get_shared_ciphers`.
Showing all 6 steps of the trace


test/sslapitest.c:4508:1: Array declaration
4506.   };
4507.   
4508. > static int test_ssl_get_shared_ciphers(int tst)
4509.   {
4510.       SSL_CTX *cctx = NULL, *sctx = NULL;

test/sslapitest.c:4541:10: Call
4539.           goto end;
4540.   
4541.       if (!TEST_ptr(SSL_get_shared_ciphers(serverssl, buf, sizeof(buf)))
                 ^
4542.               || !TEST_int_eq(strcmp(buf, shared_ciphers_data[tst].shared), 0)) {
4543.           TEST_info("Shared ciphers are: %s\n", buf);

ssl/ssl_lib.c:2552:1: <Length trace>
2550.   }
2551.   
2552. > char *SSL_get_shared_ciphers(const SSL *s, char *buf, int size)
2553.   {
2554.       char *p;

ssl/ssl_lib.c:2552:1: Parameter `*buf`
  2550.   }
  2551.   
  2552. > char *SSL_get_shared_ciphers(const SSL *s, char *buf, int size)
  2553.   {
  2554.       char *p;

ssl/ssl_lib.c:2565:5: Assignment
  2563.           return NULL;
  2564.   
  2565.       p = buf;
              ^
  2566.       clntsk = s->session->ciphers;
  2567.       srvrsk = SSL_get_ciphers(s);

ssl/ssl_lib.c:2593:5: Array access: Offset: -1 Size: 1024 by call to `SSL_get_shared_ciphers` 
  2591.           size -= n + 1;
  2592.       }
  2593.       p[-1] = '\0';
              ^
  2594.       return buf;
  2595.   }
