forked from lix-project/lix
Fix overflow when verifying signatures of content addressable paths
This commit is contained in:
parent
8327a7a8fa
commit
0ae8d4033d
|
@ -120,7 +120,7 @@ struct CmdVerify : StorePathsCommand
|
||||||
for (auto sig : sigs) {
|
for (auto sig : sigs) {
|
||||||
if (sigsSeen.count(sig)) continue;
|
if (sigsSeen.count(sig)) continue;
|
||||||
sigsSeen.insert(sig);
|
sigsSeen.insert(sig);
|
||||||
if (info->checkSignature(publicKeys, sig))
|
if (validSigs < ValidPathInfo::maxSigs && info->checkSignature(publicKeys, sig))
|
||||||
validSigs++;
|
validSigs++;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue