diff options
author | Warner Losh <imp@FreeBSD.org> | 2018-10-26 23:08:22 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2018-10-26 23:08:22 +0000 |
commit | df65fbc5699cb0bbec72e72335895721a61f959f (patch) | |
tree | 670e4c64ed4fc1153e20bad8ce5589552406c306 /usr.sbin/efivar | |
parent | 366a7b3d0cb87e6f13708bc085608d987a416ef9 (diff) | |
download | src-df65fbc5699cb0bbec72e72335895721a61f959f.tar.gz src-df65fbc5699cb0bbec72e72335895721a61f959f.zip |
Ensure we have a full EFI_DEVICE_PATH header before we try to look at
its length. Some BIOSes pad the length of the device path to an even
amount. When we had a device path that was somehow an odd length, we'd
wind up having 1 byte left that we were bogusly interpreting as a full
device path. We'd then dereference 2 bytes into that to get a length
of the node, which had undefined (and quite undesired) effects.
Sponsored by: Netflix, Inc
MFC After: 3 days
Notes
Notes:
svn path=/head/; revision=339800
Diffstat (limited to 'usr.sbin/efivar')
0 files changed, 0 insertions, 0 deletions