2d-primitives: check dimensions in __illuminate
gl_draw_circle draws outside of the screen if the resolution is too low.
This lead to memory corruption. Check the dimensions before drawing.

Signed-off-by: Bastian Stender <bst@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 43f2dec commit ab5a26ef141020dc386c91ce324f8a3ac9408c76
@Bastian Stender Bastian Stender authored on 23 Feb 2017
Sascha Hauer committed on 24 Feb 2017
Showing 1 changed file
View
lib/gui/2d-primitives.c