HomePhabricator

util: Don't allow Base32/64-decoding or ParseMoney(…) on strings with embedded…

Description

util: Don't allow Base32/64-decoding or ParseMoney(…) on strings with embedded NUL characters. Add tests.

Summary:

Don't allow Base32/64-decoding or ParseMoney(…) on strings with embedded
NUL characters. Add tests.

Backport of core PR17753.

Depends on D8154.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

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

Details

Provenance
practicalswift <practicalswift@users.noreply.github.com>Authored on Dec 16 2019, 08:59
FabienCommitted on Oct 28 2020, 13:57
FabienPushed on Oct 28 2020, 13:58
Reviewer
Restricted Project
Differential Revision
D8155: util: Don't allow Base32/64-decoding or ParseMoney(…) on strings with embedded NUL characters. Add tests.
Parents
rABCbd611af6fa23: util: Don't allow Base58 decoding of non-Base58 strings. Add Base58 tests.
Branches
Unknown
Tags
Unknown