diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2020-05-12 12:40:16 +0800 |
---|---|---|
committer | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2020-05-14 16:32:54 +0800 |
commit | a241848f9961559c5995137ca496418d03950977 (patch) | |
tree | bad3d495bd1281617bf1991453ec0e08bded5100 /ipc/chromium/src | |
parent | 4e064f8907a2d3ddf3fea1aba983f48bb064eba4 (diff) | |
download | uxp-a241848f9961559c5995137ca496418d03950977.tar.gz |
Bug 1430745 - IPC: Fix unaligned accesses in DirReaderLinux
Tag: #1542
Diffstat (limited to 'ipc/chromium/src')
-rw-r--r-- | ipc/chromium/src/base/dir_reader_linux.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ipc/chromium/src/base/dir_reader_linux.h b/ipc/chromium/src/base/dir_reader_linux.h index 530fe2e015..e0466fc4c9 100644 --- a/ipc/chromium/src/base/dir_reader_linux.h +++ b/ipc/chromium/src/base/dir_reader_linux.h @@ -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); |