• Shaka Huang's avatar
    Fix crash during boot in x86 platform · 0ecfb63c
    Shaka Huang authored
    readlinkat() may return random value instead of the number of bytes placed in buf and crashing the system in two ways:
    1. segmentation fault (buf[-7633350] = ‘\0’)
    2. wrong link of watchdogd, resulting dog timeout
    
    Confirmed working in ZenFone 2 x86 series, may fix #2247 and #2356
    Signed-off-by: 's avatarShaka Huang <shakalaca@gmail.com>
    0ecfb63c
rootdir.cpp 12.6 KB