From: Anton Kovalenko Date: Fri, 30 Sep 2011 10:06:04 +0000 (+0400) Subject: fix run-program misaligned access X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=6113d10bd637c220036cb74b45f03354fe1f872d;p=sbcl.git fix run-program misaligned access Thanks to Antoni Grzymala for the report. --- diff --git a/src/code/run-program.lisp b/src/code/run-program.lisp index daebefe..0417401 100644 --- a/src/code/run-program.lisp +++ b/src/code/run-program.lisp @@ -496,7 +496,7 @@ status slot." ;; Copy string. (sb-kernel:copy-ub8-to-system-area octets 0 string-sap 0 size) ;; NULL-terminate it - (setf (sap-ref-32 string-sap size) 0) + (sb-kernel:system-area-ub8-fill 0 string-sap size 4) ;; Put the pointer in the vector. (setf (sap-ref-sap vec-sap vec-index-offset) string-sap) ;; Advance string-sap for the next string.