commit | d8eeb0f5e26a60db9496d587f66c13e7562fcc16 | [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 | 23c0ea5da7117e25097c69152e5f0c9f8fa0f740 [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>