ssl/t1_lib.c:529: 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:277:1: Array declaration
275.   
276.   /* The default curves */
277. > static const unsigned char eccurves_default[] = {
278.       0, 29,                      /* X25519 (29) */
279.       /* Prefer P-256 which has the fastest and most secure implementations. */

ssl/t1_lib.c:529:22: Call
527.           for (j = 0; j < num_supp; j++, tsupp += 2) {
528.               if (pref[0] == tsupp[0] && pref[1] == tsupp[1]) {
529.                   if (!tls_curve_allowed(s, pref, SSL_SECOP_CURVE_SHARED))
                            ^
530.                       continue;
531.                   if (nmatch == k) {

ssl/t1_lib.c:419:1: <Offset trace>
417.   
418.   /* See if curve is allowed by security callback */
419. > static int tls_curve_allowed(SSL *s, const unsigned char *curve, int op)
420.   {
421.       const tls_curve_info *cinfo;

ssl/t1_lib.c:419:1: Parameter `*curve`
  417.   
  418.   /* See if curve is allowed by security callback */
  419. > static int tls_curve_allowed(SSL *s, const unsigned char *curve, int op)
  420.   {
  421.       const tls_curve_info *cinfo;

ssl/t1_lib.c:237:1: <Length trace>
235.    */
236.   
237. > static const tls_curve_info nid_list[] = {
238.       {NID_sect163k1, 80, TLS_CURVE_CHAR2}, /* sect163k1 (1) */
239.       {NID_sect163r1, 80, TLS_CURVE_CHAR2}, /* sect163r1 (2) */

ssl/t1_lib.c:237:1: Array declaration
  235.    */
  236.   
  237. > static const tls_curve_info nid_list[] = {
  238.       {NID_sect163k1, 80, TLS_CURVE_CHAR2}, /* sect163k1 (1) */
  239.       {NID_sect163r1, 80, TLS_CURVE_CHAR2}, /* sect163r1 (2) */

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