OSDN Git Service

More correct handling of the HeaderSize field in GPT labels
authorMatthew S. Harris <mharris312@gmail.com>
Sun, 8 Jul 2007 19:27:07 +0000 (12:27 -0700)
committerJim Meyering <jim@meyering.net>
Tue, 10 Jul 2007 07:01:26 +0000 (09:01 +0200)
commit6be273f13b07f1e6b16922fc1555c12be1427cc0
treec2a0a068b5d4b37eb68a25ae44b1dd377bdd238b
parent6501f3f3cc5d47dfacde882973455e0161057bf7
More correct handling of the HeaderSize field in GPT labels

- Use the HeaderSize field value when determining how many bytes to
compute the CRC over.

- Don't abort if the HeaderSize field value is bigger than our struct,
since more fields may be defined in the future.

Signed-off-by: Matthew S. Harris <mharris@coruscant.(none)>
libparted/labels/gpt.c