fix(label):LONG_DOT mode crash if text encode > 1
@@ -1118,6 +1118,9 @@ static void lv_label_refr_text(lv_obj_t * obj)
for(i = 0; i <= LV_LABEL_DOT_NUM; i++) {
len += _lv_txt_encoded_size(&label->text[byte_id]);
_lv_txt_encoded_next(label->text, &byte_id);
+ if (len > LV_LABEL_DOT_NUM || byte_id > txt_len) {
+ break;
+ }
}
if(lv_label_set_dot_tmp(obj, &label->text[byte_id_ori], len)) {
