Skip to content

Bug report: sometimes old input is baked #1467

Description

@mikecat

Describe the bug

Sometimes the output is inaccurate compared to current input.
When this happens, pressing the bake button has the system bake current input and update the output.
I tried adding console.log to check the value of input after here:

async bake(input, recipeConfig, options) {

As a result, I found that sometimes old input is passed here instead of current one.

To Reproduce

  1. Put "SHA0" operation with large number of rounds (80000 or 800000, for example)
  2. Copy this string: 090f45ba9b507e91a719b833f6c8668db278d397
  3. Paste the string to the input twice with short interval
  4. If not reproduced, repeat step 3 several times

Expected behaviour

Always current input is baked and the output always matches the input after baking is completed.

Screenshots

CyberChef_test_old_input_baked-20221104.mp4

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

  • OS: Windows 10 Home 21H2 x64
  • Browser: Firefox Browser 106.0.4 (64bit)
  • CyberChef version: 9.48.0

Additional context

Information on "Report a bug" tab:

  • Version: 9.48.0
  • Compile time: 14/10/2022 23:17:50 UTC
  • User-Agent:
    Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0
  • Link to reproduce

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions