]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow ssp_test:read to pass more reliably
authorAlex Richardson <arichardson@FreeBSD.org>
Mon, 1 Mar 2021 19:50:38 +0000 (19:50 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Thu, 22 Apr 2021 09:42:36 +0000 (10:42 +0100)
commitc8f8369856b5fe8f6ca26a1e045903b119b80213
tree163fa3bf178f2479ca2ab01d135b3046fe7858a2
parent770517d41a161c1e6b0d919ea8c4a51241c11898
Allow ssp_test:read to pass more reliably

It appears that the stackframe layout can be slightly different depending on
compiler and target architecture. For example, when using CHERI LLVM for RISC-V
we can actually overflow the buffer by up to 8 bytes without SSP detecting it.
Fix this by increasing the overflow to 15 bytes.

Reviewed By: ngie, emaste
Differential Revision: https://reviews.freebsd.org/D28997

(cherry picked from commit c88c1f23a8989b881a5ca51223289ddb4ce74277)
contrib/netbsd-tests/lib/libc/ssp/t_ssp.sh