parent
d701d2bcad
commit
6859d1cbe2
1 changed files with 14 additions and 0 deletions
|
@ -0,0 +1,14 @@
|
|||
diff --git a/convert/source-ext2.c b/convert/source-ext2.c
|
||||
index b1492c78693d..070126ec38ec 100644
|
||||
--- convert/source-ext2.c
|
||||
+++ convert/source-ext2.c
|
||||
@@ -422,8 +422,7 @@ static int ext2_xattr_check_entry(struct ext2_ext_attr_entry *entry,
|
||||
{
|
||||
size_t value_size = entry->e_value_size;
|
||||
|
||||
- if (entry->e_value_block != 0 || value_size > size ||
|
||||
- entry->e_value_offs + value_size > size)
|
||||
+ if (value_size > size || entry->e_value_offs + value_size > size)
|
||||
return -EIO;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue