Skip to content
Commit e088f0c3 authored by Yuezhang.Mo@sony.com's avatar Yuezhang.Mo@sony.com Committed by Tom Rini
Browse files

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: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent 1e35a4d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment