HomeFreeBSD

Allow ssp_test:read to pass more reliably

Description

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)

Details

Provenance
arichardsonAuthored on Mar 1 2021, 7:50 PM
Reviewer
ngie
Differential Revision
D28997: Allow ssp_test:read to pass more reliably
Parents
rG770517d41a16: s_scalbn.c: Add missing float.h include
Branches
Unknown
Tags
Unknown