diff -u cpio-2.8/debian/changelog cpio-2.8/debian/changelog --- cpio-2.8/debian/changelog +++ cpio-2.8/debian/changelog @@ -1,3 +1,11 @@ +cpio (2.8-1ubuntu2) gutsy; urgency=low + + * src/copyin.c: Applied patch from Dave Gilbert inline to fix + possible segfault when fixing headers, where the magic number + is byte swapped (LP: #139928) + + -- dAniel hAhler Tue, 02 Oct 2007 04:54:51 +0200 + cpio (2.8-1ubuntu1) gutsy; urgency=low * Build with -fgnu89-inline to build with gcc-4.3. LP: #138566. only in patch2: unchanged: --- cpio-2.8.orig/src/copyin.c +++ cpio-2.8/src/copyin.c @@ -1266,7 +1266,7 @@ error (0, 0, _("warning: archive header has reverse byte-order")); warned = 1; } - swab_array ((char *) &short_hdr, 13); + swab_array ((char *) short_hdr, 13); } file_hdr->c_dev_maj = major (short_hdr->c_dev);