Bug 1430745 - IPC: Fix unaligned accesses in DirReaderLinux. r=froydnj

---
 ipc/chromium/src/base/dir_reader_linux.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
This commit is contained in:
Heiher 2018-01-17 23:17:28 +08:00
parent 0b2d0cc55f
commit 245134e169

View File

@ -90,7 +90,10 @@ class DirReaderLinux {
private:
const int fd_;
unsigned char buf_[512];
union {
linux_dirent dirent_;
unsigned char buf_[512];
};
size_t offset_, size_;
DISALLOW_COPY_AND_ASSIGN(DirReaderLinux);