Page MenuHomePhabricator

Work around memory-aliasing in descriptor ParsePubkey
ClosedPublic

Authored by PiRK on Jun 30 2021, 13:20.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABC210f991f78ac: Work around memory-aliasing in descriptor ParsePubkey
Summary

Having a.size()==0 and then access a[0] is undefined behavior.

Add Span::empty() and use it in script/descriptor

This is a backport of core#19508

Test Plan

ninja all check-all