libunwind: Don't attempt to authenticate a null return address.
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 12 Feb 2021 00:16:51 +0000 (16:16 -0800)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 16 Feb 2021 19:18:02 +0000 (11:18 -0800)
commitcddc53ef088b68586094c9841a76b41bee3994a4
tree59eab4e44997ffc2c26ca8c4a4bf5803407aa8a5
parent962b73dd0fc3906980e597f72a35eee7121cc5e2
libunwind: Don't attempt to authenticate a null return address.

Null return addresses can appear at the bottom of the stack (i.e. the
frame corresponding to the entry point). Authenticating these addresses
will set the error code in the address, which will lead to a segfault
in the sigreturn trampoline detection code. Fix this problem by not
authenticating null addresses.

Differential Revision: https://reviews.llvm.org/D96560
libunwind/src/DwarfInstructions.hpp