Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71d76c24 authored by Jin Feng's avatar Jin Feng Committed by Tanguy Pruvot
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 e672fdfe
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