tests: Fix fuzzers eval_script and script_flags by re-adding ECCVerifyHandle dependency #17274

pull practicalswift wants to merge 1 commits into bitcoin:master from practicalswift:fuzzer-initialization-follow-up changing 2 files +15 −1
  1. practicalswift commented at 9:32 PM on October 27, 2019: contributor

    The fuzzers eval_script and script_flags require holding ECCVerifyHandle.

    This is a follow-up to #17235 which accidentally broke those two fuzzers.

    Sorry about the temporary breakage my fuzzing friends: it took a while to fuzz before reaching these code paths. That's why this wasn't immediately caught. Sorry.

  2. tests: Add fuzzer initialization (hold ECCVerifyHandle) 9cae3d5e94
  3. fanquake added the label Tests on Oct 27, 2019
  4. MarcoFalke commented at 12:22 AM on October 30, 2019: member

    What are the steps to reproduce? Please upload a seed to https://github.com/bitcoin-core/qa-assets

  5. practicalswift commented at 10:55 PM on October 30, 2019: contributor

    This test case triggers the condition in script_flags:

    020200000002020201006040001f84e6008d000000000000000000000000
    04000000000000002751261a535353295b5352210300000000a7000000ac
    acacacacacacacacacacac7573655f636d70acacacaca7ac000000000000
    0000000000000000000000000000000010101000000000
    
    $ mkdir script_flags-testcase/
    $ xxd -p -r <<< "020200000002020201006040001f84e6008d00000000000000000000000004000000000000002751261a535353295b5352210300000000a7000000acacacacacacacacacacacac7573655f636d70acacacaca7ac0000000000000000000000000000000000000000000010101000000000" > script_flags-testcase/crash
    $ UBSAN_OPTIONS="print_stacktrace=1:halt_on_error=1" src/test/fuzz/script_flags script_flags-testcase/
    pubkey.cpp:174:36: runtime error: null pointer passed as argument 1, which is declared to never be null
    

    This test case triggers the condition in eval_script:

    1a3017021200f98d0a0f831000210000000000001a32170201008100ac6e
    6e878c
    
    $ mkdir script_flags-testcase/
    $ xxd -p -r <<< "1a3017021200f98d0a0f831000210000000000001a32170201008100ac6e6e878c" > eval_script-testcase/crash
    $ UBSAN_OPTIONS="print_stacktrace=1:halt_on_error=1" src/test/fuzz/eval_script eval_script-testcase/
    pubkey.cpp:35:45: runtime error: null pointer passed as argument 1, which is declared to never be null
    
  6. practicalswift commented at 11:02 PM on October 30, 2019: contributor

    Seeds submitted to qa-assets in https://github.com/bitcoin-core/qa-assets/pull/1 :)

  7. practicalswift commented at 12:58 PM on October 31, 2019: contributor

    @MarcoFalke The broken fuzzers are causing some pain in the form of false positives. Would it be possible to get those changes in? :)

  8. MarcoFalke referenced this in commit 1c5e0ccaba on Oct 31, 2019
  9. MarcoFalke merged this on Oct 31, 2019
  10. MarcoFalke closed this on Oct 31, 2019

  11. sidhujag referenced this in commit 0c2a515915 on Oct 31, 2019
  12. MarcoFalke referenced this in commit da1af855f9 on Dec 6, 2019
  13. sidhujag referenced this in commit ac4deea33b on Dec 6, 2019
  14. jasonbcox referenced this in commit fed8c74652 on Jul 10, 2020
  15. jasonbcox referenced this in commit 0948e1d200 on Nov 6, 2020
  16. sidhujag referenced this in commit d9b3994379 on Nov 10, 2020
  17. sidhujag referenced this in commit ff5075ef31 on Nov 10, 2020
  18. practicalswift deleted the branch on Apr 10, 2021
  19. PastaPastaPasta referenced this in commit 58e61ac7ee on Jun 27, 2021
  20. PastaPastaPasta referenced this in commit 930a04b5d8 on Jun 28, 2021
  21. PastaPastaPasta referenced this in commit f404eadf02 on Jun 29, 2021
  22. PastaPastaPasta referenced this in commit c7808dcc9e on Jul 1, 2021
  23. PastaPastaPasta referenced this in commit 4b12666027 on Jul 1, 2021
  24. PastaPastaPasta referenced this in commit e3810c3f2e on Jul 14, 2021
  25. PastaPastaPasta referenced this in commit 0045bdd257 on Jul 14, 2021
  26. PastaPastaPasta referenced this in commit 65bac012ff on Jul 15, 2021
  27. PastaPastaPasta referenced this in commit 7911ddc99d on Feb 26, 2022
  28. PastaPastaPasta referenced this in commit 2b5bfa9659 on Feb 26, 2022
  29. PastaPastaPasta referenced this in commit 22b08e8046 on Mar 1, 2022
  30. PastaPastaPasta referenced this in commit 10b6f23a21 on Mar 3, 2022
  31. PastaPastaPasta referenced this in commit 662a38bb7a on Mar 3, 2022
  32. PastaPastaPasta referenced this in commit 8e12e2611f on Mar 5, 2022
  33. PastaPastaPasta referenced this in commit b023e9687b on Mar 7, 2022
  34. DrahtBot locked this on Aug 18, 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 00:14 UTC

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