Skip to content

Commit 2297938

Browse files
committed
fix(draw_sw_mask): add ASSERT_MALLOC check (#7648)
Signed-off-by: Detlev Zundel <[email protected]>
1 parent 6decbb7 commit 2297938

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/draw/sw/lv_draw_sw_mask.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,7 @@ static void circ_calc_aa4(lv_draw_sw_mask_radius_circle_dsc_t * c, int32_t radiu
10931093

10941094
const size_t cir_xy_size = (radius + 1) * 2 * 2 * sizeof(int32_t);
10951095
int32_t * cir_x = lv_malloc_zeroed(cir_xy_size);
1096+
LV_ASSERT_MALLOC(cir_x);
10961097
int32_t * cir_y = &cir_x[(radius + 1) * 2];
10971098

10981099
uint32_t y_8th_cnt = 0;

0 commit comments

Comments
 (0)