[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56048: [PATCH] bindat (strz): Null terminate fixed-length strings if
From: |
Richard Hansen |
Subject: |
bug#56048: [PATCH] bindat (strz): Null terminate fixed-length strings if there is room |
Date: |
Fri, 17 Jun 2022 18:52:51 -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
Two patches attached:
Patch 1:
; bindat (strz): Move all pack logic to pack function
Patch 2:
bindat (strz): Null terminate fixed-length strings if there is room
* lisp/emacs-lisp/bindat.el (bindat--pack-strz): For fixed-length strz
fields, explicitly write a null terminator after the packed string if
there is room.
* doc/lispref/processes.texi (Bindat Types): Update documentation.
* test/lisp/emacs-lisp/bindat-tests.el (bindat-test--str-strz-prealloc):
Update tests.
0001-bindat-strz-Move-all-pack-logic-to-pack-function.patch
Description: Text Data
0002-bindat-strz-Null-terminate-fixed-length-strings-if-t.patch
Description: Text Data
OpenPGP_signature
Description: OpenPGP digital signature
- bug#56048: [PATCH] bindat (strz): Null terminate fixed-length strings if there is room,
Richard Hansen <=