Skip to content

Fix freeze when output text decoding fails#1573

Open
Raka-loah wants to merge 5 commits intogchq:masterfrom
Raka-loah:patch-1
Open

Fix freeze when output text decoding fails#1573
Raka-loah wants to merge 5 commits intogchq:masterfrom
Raka-loah:patch-1

Conversation

@Raka-loah
Copy link

cptable.utils.decode will throw a Runtime Error instead of returning an error message string, so err should be changed to err.message.
Without the fix, whenever it fails to decode using given character encoding, the whole window freezes. For example, input a Chinese character 你 in UTF-8 and change output encoding to GB18030 will 100% freeze the browser.

Fix possible browser freeze
@CLAassistant
Copy link

CLAassistant commented May 9, 2023

CLA assistant check
All committers have signed the CLA.

@C85297 C85297 self-requested a review February 4, 2026 08:34
@C85297 C85297 changed the title Fix possible browser freeze Fix freeze when output text decoding fails Feb 4, 2026
@C85297
Copy link
Member

C85297 commented Feb 4, 2026

I've replicated the issue here: https://gchq.github.io/CyberChef/#input=5L2g&oenc=54936

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants