Skip to content

Bug report: VarInt Decode bug #1962

Open
@cyrw

Description

@cyrw

Describe the bug
After encoding and decoding, the output result is found to be wrong.
just maybe, "VarInt Decode" step have bug.

use VarInt encode this number: 18446744072844974849
and use VarInt decode output, get this number: 18446744072844974000
output number NOT equal input number

To Reproduce

open this link:
https://gchq.github.io/CyberChef/#recipe=VarInt_Encode()VarInt_Decode()&input=MTg0NDY3NDQwNzI4NDQ5NzQ4NDk&oenc=65001

Expected behaviour
output number == input number == 18446744072844974849

Screenshots
bug1

Desktop (if relevant, please complete the following information):

  • OS: Windows10
  • Browser: chrome 131.0.6778.206
  • CyberChef version: Version 10.19.4, Compile time: 23/10/2024 15:12:24 UTC

Additional context
nothing

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions