test: add regression tests for #27468 (invalid URI segfaults) #27477

pull theStack wants to merge 1 commits into bitcoin:master from theStack:202304-test-add_regression_for_27468 changing 1 files +3 −2
  1. theStack commented at 4:45 PM on April 17, 2023: contributor

    Prior to PR #27468 (commit 11422cc5720c8d73a87600de8fe8abb156db80dc) all call-sites of GetQueryParameter(...) in the REST module could trigger a crash. Add missing test cases for all possible code-paths as a regression test, as a foundation for possible follow-up fixes (which aim to resolve this issue in a more general and robust way).

  2. test: add regression tests for #27468 (invalid URI segfaults)
    Prior to PR #27468 (commit 11422cc5720c8d73a87600de8fe8abb156db80dc) all
    call-sites of `GetQueryParameter(...)` in the REST module could trigger
    a crash. Add missing test cases for all possible code-paths as a
    regression test, as a foundation for possible follow-up fixes (which aim
    to resolve this issue in a more general and robust way).
    6a77d290da
  3. DrahtBot commented at 4:45 PM on April 17, 2023: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK stickies-v, vasild

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

  4. DrahtBot added the label Tests on Apr 17, 2023
  5. fanquake requested review from stickies-v on Apr 17, 2023
  6. fanquake requested review from vasild on Apr 17, 2023
  7. stickies-v approved
  8. stickies-v commented at 5:12 PM on April 17, 2023: contributor

    ACK 6a77d290da589bd5620585def5bfc019e242e189

    The URI character validation/throwing logic is to be moved away from the query parameter logic (which would make it independent from these 3 endpoints), but this seems like a good addition for the follow-up to build on.

  9. vasild approved
  10. vasild commented at 7:40 AM on April 18, 2023: contributor

    ACK 6a77d290da589bd5620585def5bfc019e242e189

  11. fanquake referenced this in commit 467fa89438 on Apr 18, 2023
  12. fanquake commented at 9:03 AM on April 18, 2023: member

    This has been merged.

  13. fanquake closed this on Apr 18, 2023

  14. theStack deleted the branch on Apr 18, 2023
  15. sidhujag referenced this in commit 21e773bf32 on Apr 18, 2023
  16. bitcoin locked this on Apr 17, 2024

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-13 18:13 UTC

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