Repository navigation
v2.0.1 — TSan crash fix
Fix
- Pre-warm libxml2 encoding handlers on init — fixes a
SEGVcrash inxmlGetCharEncodingHandlerwhen multiple threads callXMLEncoder.encode()concurrently. The global encoding handler table in libxml2 is lazily initialised and not thread-safe; we now resolve the UTF-8 handler during the single-threadedLibXML2.ensureInitialized()path.