Branch: Tag:

2020-02-03

2020-02-03 11:04:28 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge branch 'patches/bug10003-old' into patches/bug10003

* patches/bug10003-old:
CPP: Fix out of bounds read in recode_string().

1734:    /* Add an extra reference to data, since we may return it as is. */    add_ref(data);    +  if (!data->len) return data; +     if ((!((unsigned char *)data->str)[0]) ||    (((unsigned char *)data->str)[0] == 0xfe) ||    (((unsigned char *)data->str)[0] == 0xff) ||