mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-07-06 13:55:22 +02:00
![]() commit 4d098000ac193f359e6b8ca4801dbdbd6a27b41f upstream.
There are conditions, albeit somewhat unlikely, under which right hand
expressions, calculating the end of time period in functions like
repaper_frame_fixed_repeat(), may overflow.
For instance, if 'factor10x' in repaper_get_temperature() is high
enough (170), as is 'epd->stage_time' in repaper_probe(), then the
resulting value of 'end' will not fit in unsigned int expression.
Mitigate this by casting 'epd->factored_stage_time' to wider type before
any multiplication is done.
Found by Linux Verification Center (linuxtesting.org) with static
analysis tool SVACE.
Fixes:
|
||
---|---|---|
.. | ||
arcpgu.c | ||
bochs.c | ||
cirrus.c | ||
gm12u320.c | ||
hx8357d.c | ||
ili9163.c | ||
ili9225.c | ||
ili9341.c | ||
ili9486.c | ||
Kconfig | ||
Makefile | ||
mi0283qt.c | ||
panel-mipi-dbi.c | ||
repaper.c | ||
simpledrm.c | ||
st7586.c | ||
st7735r.c |