gchq/CyberChef

bug(Swap Endianness): an uncaught TypeError "u.push is not a function"

Open

#2,495 opened on Jun 4, 2026

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (34,843 stars) (3,944 forks)batch import
buggood first issuehelp wanted

Description

To reproduce that use a direct link https://gchq.github.io/CyberChef/#recipe=Swap_endianness('',2,true)&input=aGVsbG8&oenc=65001&oeol=VT

as you can see an uncaught type error appear like

Swap endianness - TypeError in blob:https://gchq.github.io/ca665e42-4811-40fc-9d6a-a868c6bd8271 on line 2.<br><br>Message: u.push is not a function

the issue simple the first parameter not validated is empty or not

Contributor guide