[haiku-commits] Change in ...haiku[master]: kernel/fs: fix alignment problems with dirent

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 23 Feb 2019 19:06:48 +0000

From Adrien Destugues <pulkomandy@xxxxxxxxx>:

Adrien Destugues has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/1091


Change subject: kernel/fs: fix alignment problems with dirent
......................................................................

kernel/fs: fix alignment problems with dirent

Dirent struct is declared with a zero-size name field, we were doing
pointer casts to allocate it on the stack with extra space for the name.

Use an anonymous struct instead, maùink sure the dirent part is properly
aligned.
---
M src/system/kernel/fs/vfs.cpp
M src/system/kernel/fs/vfs_boot.cpp
2 files changed, 34 insertions(+), 22 deletions(-)



  git pull ssh://git.haiku-os.org/haiku refs/changes/91/1091/1
--
To view, visit https://review.haiku-os.org/c/haiku/+/1091
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I1e4aae35c75a53a3e2eec18d4099574520c0c24f
Gerrit-Change-Number: 1091
Gerrit-PatchSet: 1
Gerrit-Owner: Adrien Destugues <pulkomandy@xxxxxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in ...haiku[master]: kernel/fs: fix alignment problems with dirent - Gerrit