When args = "\"\0", "i" will be 0 and args[i-1] is used. (*lib/cmdline.c +238)
Because of "i" is an unsigned int type, the function will access at
args[0x].
It can make a crash.
Signed-off-by: Seungil Kang
---
Thanks for your review, my comments belo
When args = "\"\0", "i" will be 0 and args[i-1] is used (line:238)
Because of "i" is an unsigned int type,
the function will access at args[0x]
It can make a crash
Signed-off-by: Seungil Kang
---
lib/cmdline.c | 2 +-
1 file changed, 1 insertion(
2 matches
Mail list logo