CVSROOT:        /cvs
Module name:    src
Changes by:     k...@cvs.openbsd.org    2015/09/25 05:56:21

Modified files:
        sys/kern       : subr_disk.c 

Log message:
Don't immediately try to checksum the GPT header using the size
field from the GPT header being checksum'd. First make sure the
size is in a valid range. In particular ensure it won't cause crc32()
to run off the end of the GPT header being checksum'd. Also check
GPT signature and version first. These checks were inadvertantly
moved after the checksumming.

This should fix the system crash reported by Ze Loff on bugs@.

Reply via email to