master: Use zeroize

snuglas via Sbcl-commits <[email protected]>
Newsgroups gmane.lisp.steel-bank.cvs
Message-ID <[email protected]>
The branch "master" has been updated in SBCL:
       via  524d98588a4afea6fa8de6b8cedc44a9a9b45026 (commit)
      from  27f73d43b2489ebe6bd4edaab3f448046722a26a (commit)

- Log -----------------------------------------------------------------
commit 524d98588a4afea6fa8de6b8cedc44a9a9b45026
Author: Douglas Katzman <[email protected]>
Date:   Fri Aug 14 14:46:52 2026 -0400

    Use zeroize
---
 src/assembly/x86-64/support.lisp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/assembly/x86-64/support.lisp b/src/assembly/x86-64/support.lisp
index aa47df8cd..dc219f20b 100644
--- a/src/assembly/x86-64/support.lisp
+++ b/src/assembly/x86-64/support.lisp
@@ -245,7 +245,7 @@
              collect
              (if (typep arg '(cons (eql addressof)))
                  `(inst lea ,c-arg ,(cadr arg))
-                 `(inst mov ,c-arg ,arg)))
+                 `(if (eql ,arg 0) (zeroize ,c-arg) (inst mov ,c-arg ,arg))))
      (inst call ,fun)
      #+win32 (inst add rsp-tn 32)))
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
SBCL
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.