bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55952: [PATCH] bindat (strz): Write null terminator after variable l


From: Richard Hansen
Subject: bug#55952: [PATCH] bindat (strz): Write null terminator after variable length string
Date: Mon, 13 Jun 2022 17:48:15 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

X-Debbugs-CC: monnier@iro.umontreal.ca

Attached patch:

* lisp/emacs-lisp/bindat.el (bindat--pack-strz): Explicitly write a
null byte after packing a variable-length string to ensure proper
termination when packing to a pre-allocated string.
* doc/lispref/processes.texi (Bindat Types): Update documentation.
* test/lisp/emacs-lisp/bindat-tests.el (bindat-test--str-strz-prealloc):
Update tests.

Attachment: 0001-bindat-strz-Write-null-terminator-after-variable-len.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]