ssl/t1_ext.c:240: error: BUFFER_OVERRUN_S2
  Offset added: [`exts->meths_count` + 48, `exts->meths_count` + 48] (⇐ `exts->meths_count` + 48) Size: [1, 48⋅`exts->meths_count` + 48].
Showing all 6 steps of the trace


ssl/t1_ext.c:203:1: <Length trace>
201.   
202.   /* Set callbacks for a custom extension. */
203. > static int custom_ext_meth_add(custom_ext_methods *exts,
204.                                  unsigned int ext_type,
205.                                  custom_ext_add_cb add_cb,

ssl/t1_ext.c:203:1: Parameter `exts->meths_count`
201.   
202.   /* Set callbacks for a custom extension. */
203. > static int custom_ext_meth_add(custom_ext_methods *exts,
204.                                  unsigned int ext_type,
205.                                  custom_ext_add_cb add_cb,

ssl/t1_ext.c:228:9: Call
226.           return 0;
227.       /* Search for duplicate */
228.       if (custom_ext_find(exts, ext_type))
               ^
229.           return 0;
230.       exts->meths = OPENSSL_realloc(exts->meths,

ssl/t1_ext.c:64:1: Parameter `exts->meths_count`
  62.   
  63.   /* Find a custom extension from the list. */
  64. > static custom_ext_method *custom_ext_find(const custom_ext_methods *exts,
  65.                                             unsigned int ext_type)
  66.   {

ssl/t1_ext.c:239:5: Assignment
237.       }
238.   
239.       meth = exts->meths + exts->meths_count;
           ^
240.       memset(meth, 0, sizeof(*meth));
241.       meth->parse_cb = parse_cb;

ssl/t1_ext.c:240:5: Array access: Offset added: [exts->meths_count + 48, exts->meths_count + 48] (⇐ exts->meths_count + 48) Size: [1, 48⋅exts->meths_count + 48]
238.   
239.       meth = exts->meths + exts->meths_count;
240.       memset(meth, 0, sizeof(*meth));
           ^
241.       meth->parse_cb = parse_cb;
242.       meth->add_cb = add_cb;
