Skip to content
Commit 93ffa757 authored by Jin Feng's avatar Jin Feng
Browse files

Fix the potential segmentation fault



Extral newline can trigger recovery segmentation fault
Test case:
host$ adb shell 'echo -en "--update_package=ota_update.zip\n--show_text\n\n" > /cache/recovery/command'
host$ adb reboot recovery

Change-Id: If1781c1f5ad94a273f1cb122b67cedd9fb562433
Signed-off-by: default avatarJin Feng <jin88.feng@gmail.com>
parent ec838b88
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment