[test] Avoid potential NULL pointer dereference in addrman_tests.cpp #9554

pull practicalswift wants to merge 1 commits into bitcoin:master from practicalswift:avoid-null-pointer-dereference-in-addrman_tests changing 1 files +1 −1
  1. practicalswift commented at 7:19 PM on January 14, 2017: contributor

    No description provided.

  2. [test] Avoid potential NULL pointer dereference in addrman_tests.cpp afab9f47f6
  3. luke-jr commented at 7:23 PM on January 14, 2017: member

    utACK

  4. MarcoFalke commented at 11:15 PM on January 14, 2017: member

    This is already checked 5 lines above, no?

    On Sat, Jan 14, 2017 at 8:24 PM, Luke Dashjr notifications@github.com wrote:

    utACK

    — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bitcoin/bitcoin/pull/9554#issuecomment-272646726, or mute the thread https://github.com/notifications/unsubscribe-auth/AGGmvxtkG4NnowReyNHaiyK_rBxyGSJMks5rSSDTgaJpZM4LjtxM .

  5. practicalswift commented at 11:32 PM on January 14, 2017: contributor

    @MarcoFalke BOOST_CHECK(info1, …) (as opposed to BOOST_REQUIRE(info1, …)) won't stop the execution and ...

    if (info2)
          BOOST_CHECK(info2->ToString() == info1->ToString());		

    ... will be run regardless of the code path taken here ...

    if (info1)
        BOOST_CHECK(info1->ToString() == "250.1.2.1:8333");

    ... right? :-)

  6. fanquake added the label Tests on Jan 15, 2017
  7. MarcoFalke commented at 1:10 PM on January 15, 2017: member

    ACK afab9f47f619120f22e5d586d417c71551f8d000

  8. MarcoFalke merged this on Jan 22, 2017
  9. MarcoFalke closed this on Jan 22, 2017

  10. MarcoFalke referenced this in commit 0b96abc35f on Jan 22, 2017
  11. codablock referenced this in commit ee566ae540 on Jan 19, 2018
  12. codablock referenced this in commit 05ab5e1ca3 on Jan 20, 2018
  13. codablock referenced this in commit cd04ccd2d9 on Jan 21, 2018
  14. andvgal referenced this in commit 3793837763 on Jan 6, 2019
  15. CryptoCentric referenced this in commit b8dc21bacc on Feb 27, 2019
  16. practicalswift deleted the branch on Apr 10, 2021
  17. DrahtBot locked this on Aug 16, 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 15:15 UTC

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