RocketChat / RocketChat/Rocket.Chat.ReactNative

Specific latex string causes a mobile client crash

Open
#5,215 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.4k
Forks
1.5k
Avg merge
1d 18h
Merged PRs (30d)
90

Description

Description:

A specific latex string crashes the RC mobile client.

Environment Information:
  • Rocket.Chat Server Version: 6.3.6
  • Rocket.Chat App Version: 4.40.0
  • Device Name: iPhone
  • OS Version: 16.6.1
Steps to reproduce:
  1. On any channel type: \[\tiny A\, \scriptsize A \, \small A \, \normalsize A \, \large A \, \Large A\, \LARGE A \, \huge A \, \Huge A\] and send the message.
  2. Open up the channel with mobile client
Expected behavior:

You should see:
Screenshot from 2023-09-19 10-11-50

Actual behavior:

The mobile client crashes immediately when the message should be rendered.

Additional context:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the crash on the mobile client using the exact LaTeX message from the issue, then trace the mobile message-rendering path for LaTeX content. Done means the message renders on the reported iPhone environment without crashing and displays the expected formatted output.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, react-native, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.