summaryrefslogtreecommitdiff
path: root/core/fs/ntfs/ntfs.h
diff options
context:
space:
mode:
authorPaulo Alcantara <pcacjr@gmail.com>2012-01-18 21:18:25 -0300
committerPaulo Alcantara <pcacjr@gmail.com>2012-02-11 16:06:07 -0300
commit77f467ca6a200e64a13c23bf38e7513b80b811de (patch)
treecbeb353733a6c0d49f0302a03211bbe4018fbfde /core/fs/ntfs/ntfs.h
parent2716df8069f8df9cb9bbae2682fe089fadd8253f (diff)
downloadsyslinux-77f467ca6a200e64a13c23bf38e7513b80b811de.tar.gz
ntfs: handle offsets when walking through attribute list's entries
Instead of either hanging out or printing a fatal message on the screen when not finding attributes from attribute list's entries, handle offsets that will determine if we reached end of a attribute list. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
Diffstat (limited to 'core/fs/ntfs/ntfs.h')
-rw-r--r--core/fs/ntfs/ntfs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/fs/ntfs/ntfs.h b/core/fs/ntfs/ntfs.h
index 8a885b65..3f2b260d 100644
--- a/core/fs/ntfs/ntfs.h
+++ b/core/fs/ntfs/ntfs.h
@@ -292,6 +292,11 @@ struct ntfs_attr_record {
uint8_t compression_unit;
uint8_t reserved[5];
int64_t allocated_size;
+ int64_t data_size; /* Byte size of the attribute value.
+ * Note: it can be larger than
+ * allocated_size if attribute value is
+ * compressed or sparse.
+ */
int64_t initialized_size;
int64_t compressed_size;
} __attribute__((__packed__)) non_resident;