fix(verify): arm64 stack save, adaptive canary and host gating

Assisted-by: GLM 5.3
This commit is contained in:
2026-09-19 23:49:19 +02:00
parent 87b1081c53
commit 375182ef1f
25 changed files with 651 additions and 57 deletions
+3 -1
View File
@@ -47,7 +47,9 @@ func (r ABIReport) String() string {
// redZoneSize is the canary window below the prepared stack pointer. On
// amd64 it is the System V red zone; on every architecture a Go function
// must not write below SP, so any corruption there is a bug.
// must not write below its own declared frame, so the canary sits below
// the frame plus the call margin (see CallCheckedFrame) and any corruption
// there is a bug.
const redZoneSize = 128
// redZoneFill is the byte pattern used to detect writes below SP.