commit | e088f0c3d87005bd2bdf11d571e20f6232cc021f | [log] [tgz] |
---|---|---|
author | Yuezhang.Mo@sony.com <Yuezhang.Mo@sony.com> | Fri Jan 15 03:11:49 2021 +0000 |
committer | Tom Rini <trini@konsulko.com> | Wed Jan 27 17:07:48 2021 -0500 |
tree | b7f1b41c94c9c635682786cee5c5a1c9cd9e2d8d | |
parent | 1e35a4d2282329093ae384bfbb8df844e23798c6 [diff] |
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>