mirror of
https://github.com/pmai/Deflate.git
synced 2025-12-21 21:14:29 +01:00
Ensure sliding window buffer is 0 initialized
Avoids data leakage for invalid backreference to non-written output in deflate streams.
This commit is contained in:
@ -197,7 +197,7 @@
|
|||||||
|
|
||||||
(defstruct sliding-window-stream
|
(defstruct sliding-window-stream
|
||||||
(stream nil :type stream :read-only t)
|
(stream nil :type stream :read-only t)
|
||||||
(buffer (make-array +sliding-window-size+ :element-type '(unsigned-byte 8))
|
(buffer (make-array +sliding-window-size+ :element-type '(unsigned-byte 8) :initial-element 0)
|
||||||
:type (simple-array (unsigned-byte 8) (#.+sliding-window-size+)) :read-only t)
|
:type (simple-array (unsigned-byte 8) (#.+sliding-window-size+)) :read-only t)
|
||||||
(buffer-end 0 :type fixnum)
|
(buffer-end 0 :type fixnum)
|
||||||
(checksum nil :type symbol :read-only t)
|
(checksum nil :type symbol :read-only t)
|
||||||
|
|||||||
Reference in New Issue
Block a user