mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
lv_draw_img: further fix on buffer oveflow
This commit is contained in:
parent
47cafb52b5
commit
d7904efccf
@ -449,7 +449,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];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user