1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 03:55:04 +03:00

encoding: Handle more ICU error codes

U_ILLEGAL_ESCAPE_SEQUENCE and U_UNSUPPORTED_ESCAPE_SEQUENCE can occur
with ISO-2022.
This commit is contained in:
Nick Wellnhofer 2024-09-10 03:32:37 +02:00
parent 55d36c5990
commit 6e503eb742

View File

@ -1297,6 +1297,8 @@ xmlUconvConvert(unsigned char *out, int *outlen,
case U_INVALID_CHAR_FOUND:
case U_ILLEGAL_CHAR_FOUND:
case U_ILLEGAL_ESCAPE_SEQUENCE:
case U_UNSUPPORTED_ESCAPE_SEQUENCE:
ret = XML_ENC_ERR_INPUT;
break;