Page MenuHomePhabricator

Avoid triggering undefined behaviour (std::memset(nullptr, 0, 0)) if an invalid string is passed to DecodeSecret(...)
ClosedPublic

Authored by fpelliccioni on Sep 6 2019, 16:35.

Details

Summary

Avoid triggering undefined behaviour (std::memset(nullptr, 0, 0)) if an invalid string is passed to DecodeSecret(...).

Backport of Bitcoin Core PR14242
https://github.com/bitcoin/bitcoin/pull/14242

Test Plan
make check

Diff Detail

Repository
rABC Bitcoin ABC
Branch
feature-backport-6fc656a41
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 7347
Build 12737: Bitcoin ABC Buildbot (legacy)
Build 12736: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Sep 6 2019, 17:25