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
Differential D9714
Work around memory-aliasing in descriptor ParsePubkey PiRK on Jun 30 2021, 13:20. Authored by Tags None Subscribers None
Details
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 ninja all check-all
Diff Detail
|