summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/hashes.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/contrib/hashes.cc b/apt-pkg/contrib/hashes.cc
index 8733f6392..267e2679a 100644
--- a/apt-pkg/contrib/hashes.cc
+++ b/apt-pkg/contrib/hashes.cc
@@ -411,6 +411,7 @@ static APT_PURE std::string HexDigest(gcry_md_hd_t hd, int algo)
'c', 'd', 'e', 'f'};
auto Size = gcry_md_get_algo_dlen(algo);
+ assert(Size <= 512/8);
char Result[((Size)*2) + 1];
Result[(Size)*2] = 0;