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 -3
View File
@@ -5,7 +5,7 @@ package verify
import (
"fmt"
"sort"
"slices"
)
// Block describes one basic block within a function: a maximal sequence of
@@ -13,7 +13,7 @@ import (
// a single exit (a jump, conditional jump or RET).
type Block struct {
Offset int // byte offset within the function
Label string // label name ("" for the entry block)
Label string // label name ("(entry)" for the function entry block)
}
// Blocks identifies the basic blocks of a function from its local labels.
@@ -40,7 +40,7 @@ func (k *Kernel) Blocks(name string) ([]Block, error) {
for off := range offToLabel {
offsets = append(offsets, off)
}
sort.Ints(offsets)
slices.Sort(offsets)
for _, off := range offsets {
blocks = append(blocks, Block{Offset: off, Label: offToLabel[off]})
}