]> git.saurik.com Git - apt.git/commitdiff
* ftparchive/cachedb.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Thu, 22 Sep 2011 12:17:13 +0000 (14:17 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Thu, 22 Sep 2011 12:17:13 +0000 (14:17 +0200)
  - fix buffersize in bytes2hex

debian/changelog
ftparchive/cachedb.cc

index 1665d616ef55a75d586c6c98be1e1256ebe46307..51d09d28a2a18325234d8690f6c0f4fc9640db01 100644 (file)
@@ -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 <mvo@debian.org>  Fri, 05 Aug 2011 10:57:08 +0200
 
index 7e4c2e9fec82320baa16ea2739ff6e553dd2412f..080c2bbcc1a2c5de62bfb0032cb85c77481337fc 100644 (file)
@@ -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]);