summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diffreg.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2015-09-25 11:56:21 +0000
committerkrw <krw@openbsd.org>2015-09-25 11:56:21 +0000
commitaa6980c01ddf94d94358a450a663f63ebd65f802 (patch)
treeedee3b10a07af24c5a3ea60976d359f68a494cb1 /usr.bin/diff/diffreg.c
parentEnsure that RTF_LOCAL route entries always stay UP. (diff)
downloadwireguard-openbsd-aa6980c01ddf94d94358a450a663f63ebd65f802.tar.xz
wireguard-openbsd-aa6980c01ddf94d94358a450a663f63ebd65f802.zip
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@.
Diffstat (limited to 'usr.bin/diff/diffreg.c')
0 files changed, 0 insertions, 0 deletions