From f8bb65b7f5db9560654cb13c72476f01f0bade8a4ab9837d554dca2025034e73 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 27 Mar 2025 11:55:37 +0300 Subject: [PATCH] Recommendation to omit zero bytes in MAGIC --- spec/encoding/magic.texi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/encoding/magic.texi b/spec/encoding/magic.texi index 1a885cd..f46b941 100644 --- a/spec/encoding/magic.texi +++ b/spec/encoding/magic.texi @@ -4,7 +4,9 @@ MAGIC is an atom holding magic number/string aimed to identify the data following it. It is a concatenation of ASCII("KEKS") and 12-byte magic, -padded with zeros if necessary. +padded with zeros if necessary. Zero bytes should not be used in it, +except for trailing ones. + It is intended to be prepended to the KEKS-encoded data in files. @multitable @columnfractions .5 .5 -- 2.48.1