ssl/t1_lib.c:1139: 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:1026:1: Parameter `*s->session->tlsext_supportedgroupslist`
1024.   }
1025.   
1026. > int ssl_add_clienthello_tlsext(SSL *s, WPACKET *pkt, int *al)
1027.   {
1028.   #ifndef OPENSSL_NO_EC

ssl/t1_lib.c:1139:17: Call
1137.           /* Copy curve ID if supported */
1138.           for (i = 0; i < num_curves; i++, pcurves += 2) {
1139.               if (tls_curve_allowed(s, pcurves, SSL_SECOP_CURVE_SUPPORTED)) {
                        ^
1140.                   if (!WPACKET_put_bytes_u8(pkt, pcurves[0])
1141.                       || !WPACKET_put_bytes_u8(pkt, pcurves[1])) {

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

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

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

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

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