From 26686374bd0c355446a641c2d39142e8017fef81 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Tue, 10 Feb 2026 22:16:48 -0500 Subject: [PATCH] Avoid compiler optimizations breaking ZeroizeBytes --- security/security.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/security/security.go b/security/security.go index b1d4b04..daa7418 100644 --- a/security/security.go +++ b/security/security.go @@ -2,6 +2,8 @@ package security // ZeroizeBytes overwrites all // bytes in a slice with zeros. +// +//go:noinline func ZeroizeBytes(input []byte) { for i := range input { input[i] = 0