Page MenuHomePhabricator

wallet: Fix non-determinism in ParseHDKeypath(...). Avoid using an uninitialized variable in path calculation.
ClosedPublic

Authored by deadalnix on Nov 21 2019, 14:07.

Details

Summary
  • wallet: Add error handling. Check return value of ParseUInt32(...) in ParseHDKeypath(...).
  • wallet: Add tests for ParseHDKeypath(...)

This is a backport of Core PR13712

Test Plan
make check

Diff Detail

Repository
rABC Bitcoin ABC
Branch
pr13712
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 8213
Build 14452: Default Diff Build & Tests
Build 14451: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Nov 21 2019, 19:43