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
(none)!yura 2004-07-30 13:00:24 +00:00
parent 6c71138294
commit d2fd32b481
1 changed files with 1 additions and 1 deletions

View File

@ -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;