Skip to content

[Bug]: Large amount of invisible unicode characters causes freeze and crash #3839

@Kimapr

Description

@Kimapr

Problem description

Printing a specific file to terminal freezes and crashes Termux. The file is valid UTF-8 but contains large amounts of various invisible Unicode characters, including zero-width spaces, word joiners, variant selectors, etc.

Steps to reproduce the behavior.

  1. Download https://kimapr.net/lappy/matroska.js
  2. Print it to the terminal using cat or similar

What is the expected behavior?

Termux does not freeze or crash

System information

  • Termux application version: 0.118.0
  • Android OS version: 11
  • Device model: TECNO Spark 8C KG5j

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions