mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
fix undefined behavior in confidential commitment serialization
This commit is contained in:
parent
1920d8480e
commit
61c54913c9
1 changed files with 3 additions and 2 deletions
|
|
@ -56,8 +56,9 @@ public:
|
|||
}
|
||||
vchCommitment[0] = version;
|
||||
}
|
||||
if (vchCommitment.size() > 1)
|
||||
READWRITE(REF(CFlatData(&vchCommitment[1], &vchCommitment[vchCommitment.size()])));
|
||||
if (vchCommitment.size() > 1) {
|
||||
READWRITE(REF(CFlatData(vchCommitment.data() + 1, vchCommitment.data() + vchCommitment.size())));
|
||||
}
|
||||
}
|
||||
|
||||
/* Null is the default state when no explicit asset or confidential
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue