Skip to content

2.4.1

Latest

Choose a tag to compare

@PyYoshi PyYoshi released this 13 Nov 18:05
v2.4.1
69b9efe

What’s changed

  • Fixes crashes when one UniversalDetector is used from several threads at once. uchardet runs without the GIL, so concurrent calls could corrupt its state on both regular and free-threaded builds. The detector’s methods now hold a per-instance lock.
  • Fixes UniversalDetector returning freed memory as its result when close() follows reset() on a detector created with language_weights. This could raise UnicodeDecodeError. The bundled uchardet now drops its weighted candidates on reset.

See CHANGES.md for the full release notes.