Forced 64-bit computation of inode number in ntfsundelete

An inode number computation was done with 32 bits, and could (theoretically)
lead to truncation.
edge.strict_endians
Jean-Pierre André 2013-07-30 11:07:12 +02:00
parent bcbd157cfc
commit ad40849149
1 changed files with 4 additions and 2 deletions

View File

@ -2180,7 +2180,8 @@ static int scan_disk(ntfs_volume *vol)
ntfs_attr *attr;
long long size;
long long bmpsize;
int i, j, k, b;
long long i;
int j, k, b;
int percent;
struct ufile *file;
regex_t re;
@ -2238,7 +2239,8 @@ static int scan_disk(ntfs_volume *vol)
continue;
file = read_record(vol, (i+j)*8+k);
if (!file) {
ntfs_log_error("Couldn't read MFT Record %d.\n", (i+j)*8+k);
ntfs_log_error("Couldn't read MFT Record %lld.\n",
(long long)(i+j)*8+k);
continue;
}