summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorYuezhang.Mo@sony.com <Yuezhang.Mo@sony.com>2021-01-15 06:11:49 +0300
committerTom Rini <trini@konsulko.com>2021-01-28 01:07:48 +0300
commite088f0c3d87005bd2bdf11d571e20f6232cc021f (patch)
treeb7f1b41c94c9c635682786cee5c5a1c9cd9e2d8d /drivers/rtc
parent1e35a4d2282329093ae384bfbb8df844e23798c6 (diff)
downloadu-boot-e088f0c3d87005bd2bdf11d571e20f6232cc021f.tar.xz
autoboot: fix illegal memory access when stop key and delay key are empty
If both stop key and delay key are empty, the length of these keys is 0. The subtraction operation will cause the u_int type variable to overflow, will cause illegal memory access in key input loop. This commit fixes this bug by using int type instead of u_init. Acked-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'drivers/rtc')
0 files changed, 0 insertions, 0 deletions