Bug 1430745 - IPC: Fix unaligned accesses in DirReaderLinux

Tag: #1542
This commit is contained in:
Jiaxun Yang 2020-05-12 12:40:16 +08:00 committed by Roy Tam
commit 08b5181555

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);