]> git.eshelyaron.com Git - emacs.git/commit
Fix string-to-multibyte overlong sequence bug
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Apr 2020 05:26:30 +0000 (22:26 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Apr 2020 05:31:11 +0000 (22:31 -0700)
commitc88a3be8087ad0165415aa87c01f868a7433cb21
tree5bba8004c1846653aa514416d31c6b47034df740
parent856d9378a49ec9ec1af2ea74fb9309fe4c39cd1d
Fix string-to-multibyte overlong sequence bug

* src/character.h (MULTIBYTE_LENGTH, MULTIBYTE_LENGTH_NO_CHECK):
Remove, replacing with ...
(multibyte_length): ... this new function.  All callers changed.
The new function rejects overlong multibyte forms.
* test/src/buffer-tests.el (buffer-multibyte-overlong-sequences):
New test.
src/buffer.c
src/character.c
src/character.h
src/coding.c
test/src/buffer-tests.el