Przeglądaj źródła

* sparc64 alignment fix

Michael Vogt 21 lat temu
rodzic
commit
ed478d8cab
2 zmienionych plików z 5 dodań i 2 usunięć
  1. 1 1
      apt-pkg/contrib/md5.h
  2. 4 1
      debian/changelog

+ 1 - 1
apt-pkg/contrib/md5.h

@@ -58,7 +58,7 @@ class MD5SumValue
 
 
 class MD5Summation
 class MD5Summation
 {
 {
-   unsigned char Buf[4*4];
+   uint32_t Buf[4];
    unsigned char Bytes[2*4];
    unsigned char Bytes[2*4];
    unsigned char In[16*4];
    unsigned char In[16*4];
    bool Done;
    bool Done;

+ 4 - 1
debian/changelog

@@ -21,8 +21,11 @@ apt (0.6.41.1) unstable; urgency=low
     for the installer people easier (closes: #334656)
     for the installer people easier (closes: #334656)
   * fix crash in apt-ftparchive (thanks to Bastian Blank for the patch)
   * fix crash in apt-ftparchive (thanks to Bastian Blank for the patch)
     (closes: #334671)
     (closes: #334671)
+  * apt-pkg/contrib/md5.cc:
+    - fix a alignment problem on sparc64 that gives random bus errors
+      (thanks to Fabbione for providing a test-case)
   
   
- --
+ -- 
 
 
 apt (0.6.41) unstable; urgency=low
 apt (0.6.41) unstable; urgency=low