cpp: Return null key if the signature had no key
* lang/cpp/src/verificationresult.cpp (Private): Add null key to list when there is no key associated with the signature. -- This fixes an out of bounds read when a verification did not have a key.
This commit is contained in:
parent
f131a5e72b
commit
34e9dfee81
@ -72,6 +72,8 @@ public:
|
|||||||
// copy keys
|
// copy keys
|
||||||
if (scopy->key) {
|
if (scopy->key) {
|
||||||
keys.push_back(Key(scopy->key, true));
|
keys.push_back(Key(scopy->key, true));
|
||||||
|
} else {
|
||||||
|
keys.push_back(Key());
|
||||||
}
|
}
|
||||||
// copy notations:
|
// copy notations:
|
||||||
nota.push_back(std::vector<Nota>());
|
nota.push_back(std::vector<Nota>());
|
||||||
|
Loading…
Reference in New Issue
Block a user