OSDN Git Service

fault_handler: use SafeCopy to decode x86 instruction length.
authorJosh Gao <jmgao@google.com>
Tue, 18 Apr 2017 18:18:56 +0000 (11:18 -0700)
committerJosh Gao <jmgao@google.com>
Tue, 18 Apr 2017 21:04:20 +0000 (14:04 -0700)
commit91119d69f0736f6dbd350c433632af2618c7575a
treeb38e77c02921bdf036809c6a102ebcefa39b5e89
parent682282eaac86202652e17752ef32f14c89e2ccda
fault_handler: use SafeCopy to decode x86 instruction length.

Prevent a crash in the x86 fault handler when pc points to garbage and
we try to figure out its instruction length.

Bug: http://b/30836730
Test: m test-art-host
Change-Id: Ic1fbb8856e30140f0e1ebc9caccf9559e88ff137
runtime/arch/x86/fault_handler_x86.cc