Bug#443880: libzzip crash is unaligned access

2007-11-07 Thread AnĂ­bal Monsalve Salazar
On Wed, Nov 07, 2007 at 12:38:23AM +, brian m. carlson wrote: >tags 443880 + patch >kthxbye > >The crash in __zzip_parse_root_directory is a bus error on sparc, which >is a dead giveaway that it's an unaligned access. The problem is that >d is a zzip_disk_entry, which is required to be align

Bug#443880: libzzip crash is unaligned access

2007-11-06 Thread brian m. carlson
tags 443880 + patch kthxbye The crash in __zzip_parse_root_directory is a bus error on sparc, which is a dead giveaway that it's an unaligned access. The problem is that d is a zzip_disk_entry, which is required to be aligned, but zz_offset is not guaranteed to be a multiple of sizeof(*d).