diff options
| author | kamil <kamil@NetBSD.org> | 2019-11-07 18:30:27 +0000 |
|---|---|---|
| committer | kamil <kamil@NetBSD.org> | 2019-11-07 18:30:27 +0000 |
| commit | eb5b07f310b21fb869754f4e6159d0d5749f6bd0 (patch) | |
| tree | ba89d542c1b5ca3a909512e665a76b91ff2ecd38 /external/apache2/llvm/dist/clang/lib/Serialization/ModuleFileExtension.cpp | |
| parent | 3772525aa4feb3e363e73e3a66c0089acbc81933 (diff) | |
Ensure in validate_label() that struct disklabel pointer is 8-byte aligned
The label is searched each 4 bytes and can be detected in an unaligned
location. Before any operations on it, copy it to promptly aligned local
copy on the stack.
This is a missing part of the following change:
revision 1.108
date: 2011-01-18 20:52:24 +0100; author: matt; state: Exp; lines: +2 -1;
Make struct disklabel 8 byte aligned. This increases its size by 4 bytes
on IPL32 platforms so add code in sys_ioctl (and netbsd32_ioctl) to deal
with the older/smaller diskabel size. This change makes disklabel the
same for both IPL32 and LP64 platforms
OK by <martin>
Diffstat (limited to 'external/apache2/llvm/dist/clang/lib/Serialization/ModuleFileExtension.cpp')
0 files changed, 0 insertions, 0 deletions
