ssl/t1_ext.c:195: 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:156:1: <Length trace>
154.   
155.   /* Set callbacks for a custom extension. */
156. > static int custom_ext_meth_add(custom_ext_methods *exts,
157.                                  unsigned int ext_type,
158.                                  custom_ext_add_cb add_cb,

ssl/t1_ext.c:156:1: Parameter `exts->meths_count`
154.   
155.   /* Set callbacks for a custom extension. */
156. > static int custom_ext_meth_add(custom_ext_methods *exts,
157.                                  unsigned int ext_type,
158.                                  custom_ext_add_cb add_cb,

ssl/t1_ext.c:181:9: Call
179.           return 0;
180.       /* Search for duplicate */
181.       if (custom_ext_find(exts, ext_type))
               ^
182.           return 0;
183.       tmp = OPENSSL_realloc(exts->meths,

ssl/t1_ext.c:17:1: Parameter `exts->meths_count`
  15.   
  16.   /* Find a custom extension from the list. */
  17. > static custom_ext_method *custom_ext_find(const custom_ext_methods *exts,
  18.                                             unsigned int ext_type)
  19.   {

ssl/t1_ext.c:194:5: Assignment
192.   
193.       exts->meths = tmp;
194.       meth = exts->meths + exts->meths_count;
           ^
195.       memset(meth, 0, sizeof(*meth));
196.       meth->parse_cb = parse_cb;

ssl/t1_ext.c:195:5: Array access: Offset added: [exts->meths_count + 48, exts->meths_count + 48] (⇐ exts->meths_count + 48) Size: [1, 48⋅exts->meths_count + 48]
193.       exts->meths = tmp;
194.       meth = exts->meths + exts->meths_count;
195.       memset(meth, 0, sizeof(*meth));
           ^
196.       meth->parse_cb = parse_cb;
197.       meth->add_cb = add_cb;
