OSDN Git Service

Add a checksum to jmp_buf on ARM.
authorJosh Gao <jmgao@google.com>
Thu, 3 Mar 2016 03:03:17 +0000 (19:03 -0800)
committerJosh Gao <jmgao@google.com>
Thu, 3 Mar 2016 20:45:08 +0000 (12:45 -0800)
commita4c69137c693c45fce4010ba61d69d7147f5dd9a
treead08fb5e8878682c4cc959d44c507aa68be8bce9
parent5e57039c24d8aa777480e33255d627ca28af7dfe
Add a checksum to jmp_buf on ARM.

Make it easier to diagnose applications mucking with the contents of
jmp_buf by checksumming its contents.

Bug: http://b/27417786
Change-Id: I9989e2ea3979a36ae0bc4c9e1bacafddbacc731b
libc/arch-arm/bionic/setjmp.S
libc/bionic/setjmp_cookie.cpp
tests/setjmp_test.cpp