Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/ntfs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis <louis@losynix.net>2022-01-18 19:47:10 +0300
committerLouis <louis@losynix.net>2022-01-18 19:47:10 +0300
commit5373a81886551e9cc86db681e8be41052e572e05 (patch)
tree3a9556e6aad9467d6297656e8c446e486f7006b2
parent8ec351207510040c65cfb44e3c7041a62b64f16d (diff)
Length of NtfsAttribute can be 0
-rw-r--r--src/attribute.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attribute.rs b/src/attribute.rs
index 9279b09..9b8bb2a 100644
--- a/src/attribute.rs
+++ b/src/attribute.rs
@@ -409,7 +409,7 @@ impl<'n, 'f> NtfsAttribute<'n, 'f> {
debug_assert!(self.is_resident());
let start = self.resident_value_offset();
- if start as u32 >= self.attribute_length() {
+ if start as u32 > self.attribute_length() {
return Err(NtfsError::InvalidResidentAttributeValueOffset {
position: self.position(),
expected: start,