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


ssl/t1_lib.c:263:1: Array declaration
261.   
262.   /* The default curves */
263. > static const unsigned char eccurves_default[] = {
264.       /* Prefer P-256 which has the fastest and most secure implementations. */
265.       0, 23,                      /* secp256r1 (23) */

ssl/t1_lib.c:568:22: Call
566.           for (j = 0; j < num_supp; j++, tsupp += 2) {
567.               if (pref[0] == tsupp[0] && pref[1] == tsupp[1]) {
568.                   if (!tls_curve_allowed(s, pref, SSL_SECOP_CURVE_SHARED))
                            ^
569.                       continue;
570.                   if (nmatch == k) {

ssl/t1_lib.c:458:1: <Offset trace>
456.   
457.   /* See if curve is allowed by security callback */
458. > static int tls_curve_allowed(SSL *s, const unsigned char *curve, int op)
459.   {
460.       const tls_curve_info *cinfo;

ssl/t1_lib.c:458:1: Parameter `*curve`
  456.   
  457.   /* See if curve is allowed by security callback */
  458. > static int tls_curve_allowed(SSL *s, const unsigned char *curve, int op)
  459.   {
  460.       const tls_curve_info *cinfo;

ssl/t1_lib.c:225:1: <Length trace>
223.   # define TLS_CURVE_PRIME         0x0
224.   
225. > static const tls_curve_info nid_list[] = {
226.       {NID_sect163k1, 80, TLS_CURVE_CHAR2}, /* sect163k1 (1) */
227.       {NID_sect163r1, 80, TLS_CURVE_CHAR2}, /* sect163r1 (2) */

ssl/t1_lib.c:225:1: Array declaration
  223.   # define TLS_CURVE_PRIME         0x0
  224.   
  225. > static const tls_curve_info nid_list[] = {
  226.       {NID_sect163k1, 80, TLS_CURVE_CHAR2}, /* sect163k1 (1) */
  227.       {NID_sect163r1, 80, TLS_CURVE_CHAR2}, /* sect163r1 (2) */

ssl/t1_lib.c:465:5: Array access: Offset: [-1, +oo] Size: 28 by call to `tls_curve_allowed` 
  463.       if ((curve[1] < 1) || ((size_t)curve[1] > OSSL_NELEM(nid_list)))
  464.           return 0;
  465.       cinfo = &nid_list[curve[1] - 1];
             ^
  466.   # ifdef OPENSSL_NO_EC2M
  467.       if (cinfo->flags & TLS_CURVE_CHAR2)
