Fix bug in ntfs_attr_size_bounds_check that caused it always fail if no maximum limit for attribute size
(Logical change 1.465)edge.strict_endians
parent
6c71138294
commit
d2fd32b481
|
@ -2127,7 +2127,7 @@ int ntfs_attr_size_bounds_check(const ntfs_volume *vol, const ATTR_TYPES type,
|
|||
/* We found the attribute. - Do the bounds check. */
|
||||
if ((sle64_to_cpu(ad->min_size) && size <
|
||||
sle64_to_cpu(ad->min_size)) ||
|
||||
(sle64_to_cpu(ad->max_size) && size >
|
||||
((sle64_to_cpu(ad->max_size) > 0) && size >
|
||||
sle64_to_cpu(ad->max_size))) {
|
||||
/* @size is out of range! */
|
||||
errno = ERANGE;
|
||||
|
|
Loading…
Reference in New Issue