lv_draw_img: further fix on buffer oveflow

This commit is contained in:
Gabor Kiss-Vamosi
2018-06-01 12:41:58 +02:00
parent 25b978126e
commit ceae0c539e

View File

@@ -399,7 +399,7 @@ void lv_draw_img(const lv_area_t * coords, const lv_area_t * mask,
lv_coord_t row; lv_coord_t row;
uint32_t act_pos; uint32_t act_pos;
#if LV_COMPILER_VLA_SUPPORTED #if LV_COMPILER_VLA_SUPPORTED
lv_color_t buf[lv_area_get_width(&mask_com)]; uint8_t buf[lv_area_get_width(&mask_com) * px_size];
#else #else
# if LV_HOR_RES > LV_VER_RES # if LV_HOR_RES > LV_VER_RES
uint8_t buf[LV_HOR_RES * px_size]; uint8_t buf[LV_HOR_RES * px_size];