[net/net processing] check banman pointer before dereferencing #19514

pull jnewbery wants to merge 1 commits into bitcoin:master from jnewbery:2020-07-banman-guard changing 4 files +10 −5
  1. jnewbery commented at 9:29 am on July 14, 2020: member

    Although we currently don’t do this, it should be possible to create a CConnman or PeerLogicValidation without a Banman instance. Therefore always check that banman exists before dereferencing the pointer.

    Also add comments to the m_banman members of CConnman and PeerLogicValidation to document that these may be nullptr.

  2. [net/net processing] check banman pointer before dereferencing
    Although we currently don't do this, it should be possible to create a
    CConnman or PeerLogicValidation without a Banman instance. Therefore
    always check that banman exists before dereferencing the pointer.
    
    Also add comments to the m_banman members of CConnman and
    PeerLogicValidation to document that these may be nullptr.
    ca3585a483
  3. jnewbery commented at 9:30 am on July 14, 2020: member
  4. jonatack commented at 9:54 am on July 14, 2020: member
    ACK ca3585a
  5. fanquake added the label P2P on Jul 14, 2020
  6. MarcoFalke added the label Refactoring on Jul 14, 2020
  7. theStack approved
  8. MarcoFalke merged this on Jul 14, 2020
  9. MarcoFalke closed this on Jul 14, 2020

  10. jnewbery deleted the branch on Jul 14, 2020
  11. deadalnix referenced this in commit 651e316902 on Jan 6, 2021
  12. DrahtBot locked this on Feb 15, 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: 2024-12-18 18:12 UTC

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