HomePhabricator

net: Add tests for failure on string parameters with embedded NUL characters

Description

net: Add tests for failure on string parameters with embedded NUL characters

Summary:

Add tests to make sure lookup methods fail on std::string parameters with embedded NUL characters

This is a backport of Core PR17754 [2/3]
https://github.com/bitcoin/bitcoin/pull/17754/commits/fefb9165f23fe9d10ad092ec31715f906e0d2ee7

Depends on D8684

Test Plan: ninja && ninja check

Reviewers: #bitcoin_abc, Fabien, majcosta

Reviewed By: #bitcoin_abc, Fabien, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D8685

Details

Provenance
practicalswift <practicalswift@users.noreply.github.com>Authored on Dec 17 2020, 16:16
PiRKCommitted on Dec 17 2020, 16:17
abc-botPushed on Dec 17 2020, 16:23
Reviewer
Restricted Project
Differential Revision
D8685: net: Add tests for failure on string parameters with embedded NUL characters
Parents
rABC4927fc4b11df: net: Avoid using C-style NUL-terminated strings in the netbase interface
Branches
Unknown
Tags
Unknown