From 487890266d70d6454480815116668ac89b75fac9 Mon Sep 17 00:00:00 2001 From: Fred Morcos Date: Wed, 22 Feb 2023 12:49:27 +0100 Subject: [PATCH] PKCS11 Signer: Fix buffer overflow --- pdns/pkcs11signers.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/pkcs11signers.cc b/pdns/pkcs11signers.cc index e57018a43e..77ebfe16ef 100644 --- a/pdns/pkcs11signers.cc +++ b/pdns/pkcs11signers.cc @@ -424,7 +424,7 @@ class Pkcs11Token { size_t k; auto pubAttr = std::make_unique(pubAttributes.size()); - auto privAttr = std::make_unique(pubAttributes.size()); + auto privAttr = std::make_unique(privAttributes.size()); k = 0; for(P11KitAttribute& attribute : pubAttributes) { -- 2.47.3