gchq/CyberChef

bug(AMF Decode): Buffer exhausted while reading 8 bits at offset 0 via just empty input or newline

Open

#2,492 opened on Jun 4, 2026

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

Description

To reproduce that extremly very simple, just drag AMF decode then you will see an uncaught error

AMF Decode - Error in https://gchq.github.io/CyberChef/modules/Encodings.js on line 2.<br><br>Message: Buffer exhausted while reading 8 bits at offset 0, context:
     - [ye] Ue#marker
     - [readField()] Ue#marker
     - [read()] Ue
     - [Ue.read()] Ue

Direct Test Link:

Contributor guide