]> git.eshelyaron.com Git - emacs.git/commit
Reject invalid 5-byte sequences when detecting UTF-8 encoding
authorEli Zaretskii <eliz@gnu.org>
Fri, 15 Jun 2018 14:39:34 +0000 (17:39 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 15 Jun 2018 14:39:34 +0000 (17:39 +0300)
commit22aa665c9b536775a28ff2e4907afc31b69ccb21
tree4866771b8bf81174d9a9c7e2c23fa320c948468f
parent0d3c35807d0b0a3aaa4c4ebd2f040bb78013879d
Reject invalid 5-byte sequences when detecting UTF-8 encoding

* src/coding.c (detect_coding_utf_8): Reject multibyte sequences
whose leading byte is greater than MAX_MULTIBYTE_LEADING_CODE.
(Bug#31829)
* src/character.h (MAX_MULTIBYTE_LEADING_CODE): Add commentary
about the connection between the value of this macro and MAX_CHAR.
src/character.h
src/coding.c