OSDN Git Service

gpt: fix a bug in the new PE-array CRC checks on big-endian systems
authorJim Meyering <meyering@redhat.com>
Tue, 10 Nov 2009 14:20:08 +0000 (15:20 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 10 Nov 2009 14:20:08 +0000 (15:20 +0100)
commit97c69934bb8c5fb2fdbe326618034dba79b1cfca
treea7d2fc311a9bfc44a6e0fd30de08206f6f262865
parent8a48e1932d96bfea2e397363884c777120198920
gpt: fix a bug in the new PE-array CRC checks on big-endian systems

* libparted/labels/gpt.c (check_PE_array_CRC, gpt_read): Always
convert the PartitionEntryArrayCRC32 to CPU endianness before
comparing with a just-computed CRC.
libparted/labels/gpt.c