Skip to content

Commit

Permalink
Small fuzzing fixes (#7418)
Browse files Browse the repository at this point in the history
* Addresses an issue in the Fluent API where certain EVM bytecode could 
  lead to executions that mismatch canonical execution.
* Uses LOG.debug instead of System.out.println to prevent console spam 
  during fuzzing.

Signed-off-by: Guido Vranken <[email protected]>
  • Loading branch information
guidovranken authored Aug 1, 2024
1 parent 9cb8b06 commit 14d2809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@ public Bytes execute() {
})
.process(messageFrame, tracer);
}
initialMessageFrame.getSelfDestructs().forEach(worldUpdater::deleteAccount);
if (commitWorldState) {
worldUpdater.commit();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public PrecompileContractResult computePrecompile(
null, Optional.of(ExceptionalHaltReason.PRECOMPILE_ERROR));
}
} catch (RuntimeException kzgFailed) {
System.out.println(kzgFailed.getMessage());
LOG.debug("Native KZG failed", kzgFailed);

return PrecompileContractResult.halt(
null, Optional.of(ExceptionalHaltReason.PRECOMPILE_ERROR));
Expand Down

0 comments on commit 14d2809

Please sign in to comment.