The function subsequently calls lv_obj_get_x(copy) and lv_obj_get_y(copy) that accessing parent->coords.x1 and parent->coords.y1 without checking the parent for NULL. In case if copy object is a screen and does not have a parent it leads to NULL pointer access. embeddedt transferred ...
return lv_obj_class_create_obj(&lv_chart_class, parent); return lv_obj_class_create_obj(&lv_chart_class, parent, NULL); } void lv_chart_set_type(lv_obj_t * obj, lv_chart_type_t type)2 changes: 1 addition & 1 deletion 2 src/extra/widgets/colorwheel/lv_colorwheel.c Original ...