ref: 6de80f736dbaff57b01154597dd4776b031ec347
parent: 6c2c498a33955b14bc082fd896a3caa57b004115
author: root <ngkaho1234@gmail.com>
date: Mon Oct 5 18:56:08 EDT 2015
Fix signed/unsigned cmp at ext4_xattr.c:245
--- a/lwext4/ext4_xattr.c
+++ b/lwext4/ext4_xattr.c
@@ -237,8 +237,8 @@
ret = NULL;
} else {
- uint32_t block_size =
- ext4_sb_get_block_size(&xattr_ref->fs->sb);
+ int32_t block_size =
+ ext4_sb_get_block_size(&xattr_ref->fs->sb);
ret = (void *)((char *)xattr_ref->block.data +
to_le16(entry->e_value_offs));
if ((char *)ret + EXT4_XATTR_SIZE(to_le32(entry->e_value_size))