Fix overflow when verifying signatures of content addressable paths

This commit is contained in:
Will Fancher 2018-09-25 21:19:24 -04:00
parent 8327a7a8fa
commit 0ae8d4033d
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ struct CmdVerify : StorePathsCommand
for (auto sig : sigs) {
if (sigsSeen.count(sig)) continue;
sigsSeen.insert(sig);
if (info->checkSignature(publicKeys, sig))
if (validSigs < ValidPathInfo::maxSigs && info->checkSignature(publicKeys, sig))
validSigs++;
}
};