]> git.eshelyaron.com Git - emacs.git/commit
bindat (strz): Fix off-by-one bug in computed length
authorRichard Hansen <rhansen@rhansen.org>
Sun, 29 May 2022 03:10:44 +0000 (23:10 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 2 Jun 2022 02:18:24 +0000 (22:18 -0400)
commite66d6b379345063900eb3e99db6367c69a860cdf
tree9faf504d4cb0297209cedb94bd49e46c1e0b4d99
parent916492cb6d531e3ae16f1dc361725d60074af844
bindat (strz): Fix off-by-one bug in computed length

* lisp/emacs-lisp/bindat.el (strz): Include null terminator when
computing packed string length.
* test/lisp/emacs-lisp/bindat-tests.el (strz): Mark tests as passing.
lisp/emacs-lisp/bindat.el
test/lisp/emacs-lisp/bindat-tests.el