diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-10-08T10·03+0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-08T10·03+0200 |
commit | 01bd66bf8309a914edf63de7b25ee482f752c669 (patch) | |
tree | becb2116a0fd126574c7ee36fa3ed2b51b692f08 /tests | |
parent | 0fda9b22c7cc0f0191a51d168c4b03d6c4e98d71 (diff) | |
parent | b7091ce41e0073b147678f05b9a620b9bb2903c1 (diff) |
Merge pull request #2452 from ElvishJerricco/verify-sigs-overflow
Fix overflow when verifying signatures of content addressable paths
Diffstat (limited to 'tests')
-rw-r--r-- | tests/signing.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/signing.sh b/tests/signing.sh index 46929639199d..9e29e3fbf063 100644 --- a/tests/signing.sh +++ b/tests/signing.sh @@ -62,6 +62,10 @@ outPathCA=$(IMPURE_VAR1=foo IMPURE_VAR2=bar nix-build ./fixed.nix -A good.0 --no nix verify $outPathCA nix verify $outPathCA --sigs-needed 1000 +# Check that signing a content-addressed path doesn't overflow validSigs +nix sign-paths --key-file $TEST_ROOT/sk1 $outPathCA +nix verify -r $outPathCA --sigs-needed 1000 --trusted-public-keys $pk1 + # Copy to a binary cache. nix copy --to file://$cacheDir $outPath2 |