From a52d11fbc14f8fb10deb93a5898f53a633acbec1 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 22 Sep 2011 14:17:13 +0200 Subject: * ftparchive/cachedb.cc: - fix buffersize in bytes2hex --- debian/changelog | 5 +++++ ftparchive/cachedb.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 1665d616e..51d09d28a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,6 @@ apt (0.8.16~exp5) experimental; urgency=low + [ Michael Vogt ] * apt-pkg/makefile: - install sha256.h compat header * apt-pkg/pkgcachegen.{cc,h}: @@ -22,6 +23,10 @@ apt (0.8.16~exp5) experimental; urgency=low - fix fetching language information by adding OptionalSubIndexTarget * methods/https.cc: - cleanup broken downloads properly + + [ Colin Watson ] + * ftparchive/cachedb.cc: + - fix buffersize in bytes2hex -- Michael Vogt Fri, 05 Aug 2011 10:57:08 +0200 diff --git a/ftparchive/cachedb.cc b/ftparchive/cachedb.cc index 7e4c2e9fe..080c2bbcc 100644 --- a/ftparchive/cachedb.cc +++ b/ftparchive/cachedb.cc @@ -297,7 +297,7 @@ bool CacheDB::LoadContents(bool const &GenOnly) /*}}}*/ static string bytes2hex(uint8_t *bytes, size_t length) { - char space[65]; + char space[129]; if (length * 2 > sizeof(space) - 1) length = (sizeof(space) - 1) / 2; for (size_t i = 0; i < length; i++) snprintf(&space[i*2], 3, "%02x", bytes[i]); -- cgit v1.2.3