Subject: bug#55938: [PATCH] bindat (strz): Error on null byte if packing variable-length string

From: Lars Ingebrigtsen <[email-masked]>
Date: Mon, 13 Jun 2022 14:32:27 +0200

Richard Hansen <[email-masked]> writes:

> * lisp/emacs-lisp/bindat.el (strz): Signal an error if a null byte is
> encountered while packing a string to a variable-length strz field.
> * test/lisp/emacs-lisp/bindat-tests.el (strz): Add tests.

Thanks; pushed to Emacs 29.  (But I changed the `if' to a `when'.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no