ssl/t1_lib.c:1150: error: BUFFER_OVERRUN_L3
  Offset: [-1, +oo] Size: 29 by call to `tls_curve_allowed`.
Showing all 7 steps of the trace


ssl/t1_lib.c:1024:1: Parameter `*s->session->tlsext_supportedgroupslist`
1022.   }
1023.   
1024. > int ssl_add_clienthello_tlsext(SSL *s, WPACKET *pkt, int *al)
1025.   {
1026.   #ifndef OPENSSL_NO_EC

ssl/t1_lib.c:1150:17: Call
1148.           /* Copy curve ID if supported */
1149.           for (i = 0; i < num_curves; i++, pcurvestmp += 2) {
1150.               if (tls_curve_allowed(s, pcurves, SSL_SECOP_CURVE_SUPPORTED)) {
                        ^
1151.                   if (!WPACKET_put_bytes_u8(pkt, pcurvestmp[0])
1152.                       || !WPACKET_put_bytes_u8(pkt, pcurvestmp[1])) {

ssl/t1_lib.c:310:1: <Offset trace>
308.   
309.   /* See if curve is allowed by security callback */
310. > int tls_curve_allowed(SSL *s, const unsigned char *curve, int op)
311.   {
312.       const tls_curve_info *cinfo;

ssl/t1_lib.c:310:1: Parameter `*curve`
  308.   
  309.   /* See if curve is allowed by security callback */
  310. > int tls_curve_allowed(SSL *s, const unsigned char *curve, int op)
  311.   {
  312.       const tls_curve_info *cinfo;

ssl/t1_lib.c:142:1: <Length trace>
140.    * table: the index of each entry is one less than the TLS curve id.
141.    */
142. > static const tls_curve_info nid_list[] = {
143.       {NID_sect163k1, 80, TLS_CURVE_CHAR2}, /* sect163k1 (1) */
144.       {NID_sect163r1, 80, TLS_CURVE_CHAR2}, /* sect163r1 (2) */

ssl/t1_lib.c:142:1: Array declaration
  140.    * table: the index of each entry is one less than the TLS curve id.
  141.    */
  142. > static const tls_curve_info nid_list[] = {
  143.       {NID_sect163k1, 80, TLS_CURVE_CHAR2}, /* sect163k1 (1) */
  144.       {NID_sect163r1, 80, TLS_CURVE_CHAR2}, /* sect163r1 (2) */

ssl/t1_lib.c:317:5: Array access: Offset: [-1, +oo] Size: 29 by call to `tls_curve_allowed` 
  315.       if ((curve[1] < 1) || ((size_t)curve[1] > OSSL_NELEM(nid_list)))
  316.           return 0;
  317.       cinfo = &nid_list[curve[1] - 1];
             ^
  318.   # ifdef OPENSSL_NO_EC2M
  319.       if (cinfo->flags & TLS_CURVE_CHAR2)
