fuzz script execution with dummy signature checker #17986

issue MarcoFalke opened this issue on January 22, 2020
  1. MarcoFalke commented at 9:58 PM on January 22, 2020: member
    [13:37] <sipa> i haven't followed up on the fuzzing work that's been done to the codebase... but i wonder has anyone considered using a dummy signature checker, and fuzzing script execution with it?
    [13:50] <wumpus> not sure either, would be best to ask practicalswift
    [14:02] <phantomcircuit> sipa, i dont think anybody has done that
    [14:02] <sipa> maybe i'll spend some time looking into how fuzzing works :)
    <snip>
    [14:31] <phantomcircuit> sipa, is it easy to replace the signature checker for a script instance?
    [14:31] <phantomcircuit> iirc i looked into it but realized i'd need to much with the internals of the scripting stuff more than i wanted to
    [14:31] <sipa> phantomcircuit: the script interpreter literally takes in an object that abstracts that out
    [14:32] <sipa> you can pass one in that always returns true
    [14:32] <sipa> no code changes to the script interpreter itself needed
    <snip>
    [14:37] <phantomcircuit> sipa, neat, then it should be pretty easy to do
    [14:39] <sipa> see the BaseSignatureChecker passed to EvalScript/VerifyScript
    
  2. MarcoFalke added the label Feature on Jan 22, 2020
  3. MarcoFalke added the label Tests on Jan 22, 2020
  4. MarcoFalke commented at 10:04 PM on January 22, 2020: member

    There is https://github.com/bitcoin/bitcoin/blob/master/src/test/fuzz/eval_script.cpp and https://github.com/bitcoin/bitcoin/blob/master/src/test/fuzz/script_flags.cpp

    It could make sense to extend the script_flags fuzzer to use a dummy signature checker as well

  5. MarcoFalke commented at 10:06 PM on January 22, 2020: member
  6. practicalswift commented at 3:26 PM on March 9, 2020: contributor

    Please review #18155 ("tests: Add harness which fuzzes EvalScript and VerifyScript using a fuzzed signature checker") :)

  7. MarcoFalke closed this on Mar 18, 2020

  8. sidhujag referenced this in commit eb77965253 on Mar 18, 2020
  9. sidhujag referenced this in commit e6eb6d1406 on Nov 10, 2020
  10. DrahtBot locked this on Feb 15, 2022
  11. vijaydasmp referenced this in commit d64329343e on Aug 14, 2022
  12. vijaydasmp referenced this in commit 920c29355c on Aug 14, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-16 18:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me