• Paul Eggert's avatar
    Fix string-to-multibyte overlong sequence bug · c88a3be8
    Paul Eggert authored
    * 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.
    c88a3be8
character.c 30.3 KB