Whamcloud - gitweb
Fix SIGBUS through unaligned access to FAT superblocks.
authorMatthias Andree <matthias.andree@gmx.de>
Tue, 30 May 2006 13:47:12 +0000 (15:47 +0200)
committerMatthias Andree <matthias.andree@gmx.de>
Tue, 30 May 2006 13:47:12 +0000 (15:47 +0200)
commit94fa1108eecb92bc595ae6f4927d2aeaea4049e8
tree31c96b536c96f0723fc831a25f3e93f2894f162a
parent0ac93a00c98af2f44e5d291788c7ccaa3ed239d3
Fix SIGBUS through unaligned access to FAT superblocks.

SPARCs do not like unaligned halfword access and throw SIGBUS.
Read data "manually" instead.

Tested on Solaris 8/SPARC with gcc 2.95.3.

Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
lib/blkid/probe.c