ref: 9fdd0b708e0068d6c0be75b7e3df7bbdb7d1d236
parent: d6816b4c0d80b8068b22db6161ec660506ad58d7
author: Kaho Ng <ngkaho1234@gmail.com>
date: Sun May 15 21:48:02 EDT 2016
ext4_xattr: clear the content of acl block buffer before writing
--- a/src/ext4_xattr.c
+++ b/src/ext4_xattr.c
@@ -778,6 +778,8 @@
if (ret != EOK)
goto Finish;
}
+ memset(xattr_ref->block.data, 0,
+ ext4_sb_get_block_size(&xattr_ref->fs->sb));
block_header = EXT4_XATTR_BHDR(&xattr_ref->block);
block_entry = EXT4_XATTR_BFIRST(&xattr_ref->block);
ext4_xattr_set_block_header(xattr_ref);