mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
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:
parent
0b2d0cc55f
commit
245134e169
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user