1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 13:58:49 +00:00

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
parent 076a13bb2d
commit 08b5181555
+4 -1
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);