netd: fixed null pointer dereference exception
The return value of NetlinkEvent::findParam may be nullptr
when bootup, so pass const char * to const std::string&
will trigger 'null pointer dereference'.
F DEBUG : Cmdline: /system/bin/netd
F DEBUG : pid: 761, tid: 1382, name: netd >>> /system/bin/netd <<<
F DEBUG : uid: 0
F DEBUG : tagged_addr_ctrl: 0000000000000001
F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
F DEBUG : Cause: null pointer dereference
F DEBUG : x0 0000000000000000 x1 000000759eefd6a0 x2 0000000000000015 x3 0000000000000006
F DEBUG : x4 b40000759f00e132 x5 b40000759f01f045 x6 6166202c306e616c x7 2e3028202965736c
...
Signed-off-by: duguowei <duguowei@xiaomi.corp-partner.google.com>
Change-Id: I5b479239cf2193704ebcf50636219b90aefd1d9d
1 file changed