In libexpat before 2.7.4, XML_ExternalEntityParserCreate does not copy unknown encoding handler user data.Referenceshttps://github.com/libexpat/libexpat/pull/1131