gchq/CyberChef

Bug report: fromDecimal(...) function does not correctly handle delim parameter passed as default ("Auto")

Closed

#2217 aperta il 4 mar 2026

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (3944 fork)batch import
buggood first issuehelp wanted

Metriche repository

Star
 (34.843 star)
Metriche merge PR
 (Merge medio 57g 13h) (62 PR mergiate in 30 g)

Descrizione

Describe the bug When fromDecimal is called without specifying a value for the "delim" parameter, or when delim is passed as "Auto" it will only parse the first number in the passed text ignoring any further numbers whatever separator has been used.

To Reproduce Steps to reproduce the behaviour or a link to the recipe / input used to cause the bug:

See bug report #2139 which arises as a consequence of this issue.

Expected behaviour delim = "Auto" case should be handled correctly, in a manner similar to the fromHex(...) function.

Additional context fromHex could be used as a guide towards a correct implementation, noting that there are other differences because pairs of hex digits can be packed exactly into bytes whereas for decimal up to 3 digits can be required.

Guida contributor