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 23:05:38 +0000 (15:05 -0800)
commit54f1339d1c745d9d30f0200c332dc76661e75214
tree43c5ae7f0ed3da0e2b88df57428c3c6e1301cd2b
parent6b80e0b4bbfa51ef72c1446683a943ddbfc26784
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
(cherry picked from commit a4c69137c693c45fce4010ba61d69d7147f5dd9a)
libc/arch-arm/bionic/setjmp.S
libc/bionic/setjmp_cookie.cpp
tests/setjmp_test.cpp