Displaying 2 results from an estimated 2 matches for "attr_len".
Did you mean:
xattr_len
2014 Feb 20
2
[PATCH] NTFS: fragmented $MFT file was not handled
...kup(struct fs_info
*fs, uint32_t type, struct ntfs_mft_record **mmrec, struct
ntfs_mft_record *mrec);
+static inline uint8_t *mapping_chunk_init(struct ntfs_attr_record
*attr,struct mapping_chunk *chunk,uint32_t *offset);
+static int parse_data_run(const void *stream, uint32_t *offset, uint8_t
*attr_len, struct mapping_chunk *chunk);
/*** Function definitions */
@@ -176,127 +180,116 @@ out:
return -1;
}
-static struct ntfs_mft_record *ntfs_mft_record_lookup_3_0(struct
fs_info *fs,
- uint32_t file, block_t
*blk)
+/* AndyAlex: read and va...
2014 Feb 20
0
[PATCH] NTFS: Incorrect parsing of file runs
...s/ntfs.c 2013-10-13
21:59:03.000000000 +0400
+++ syslinux-6.02/core/fs/ntfs/ntfs.c 2014-02-20 12:20:26.000000000 +0400
@@ -352,7 +352,6 @@ static int parse_data_run(const void *st
uint8_t *byte;
int byte_shift = 8;
int mask;
- uint8_t val;
int64_t res;
(void)attr_len;
@@ -381,11 +380,8 @@ static int parse_data_run(const void *st
count = v;
res = 0LL;
- while (count--) {
- val = *byte--;
- mask = val >> (byte_shift - 1);
- res = (res << byte_shift) | ((val + mask) ^ mask);
- }
+ while (count--)
+ res...