• Eli Zaretskii's avatar
    Reject invalid 5-byte sequences when detecting UTF-8 encoding · 22aa665c
    Eli Zaretskii authored
    * 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.
    22aa665c
character.h 22.3 KB