25 lines
890 B
Diff
25 lines
890 B
Diff
|
|
From 109ca428154925f6e031fbc817b48e9dc578f8db Mon Sep 17 00:00:00 2001
|
||
|
|
From: esaunders <esaunders@basistech.com>
|
||
|
|
Date: Tue, 14 Jan 2020 15:45:44 -0500
|
||
|
|
Subject: [PATCH] Cast attrseq address to uintptr_t so that the correct type
|
||
|
|
can be inferred for the + operator.
|
||
|
|
|
||
|
|
---
|
||
|
|
tsk/fs/ntfs.c | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/tsk/fs/ntfs.c b/tsk/fs/ntfs.c
|
||
|
|
index 837033ea..eeff809e 100755
|
||
|
|
--- a/tsk/fs/ntfs.c
|
||
|
|
+++ b/tsk/fs/ntfs.c
|
||
|
|
@@ -1770,7 +1770,7 @@ ntfs_proc_attrseq(NTFS_INFO * ntfs,
|
||
|
|
// sanity check on bounds of attribute. Prevents other
|
||
|
|
// issues later on that use attr->len for bounds checks.
|
||
|
|
if (((uintptr_t) attr + tsk_getu32(fs->endian,
|
||
|
|
- attr->len)) > (uintptr_t) (a_attrseq + len)) {
|
||
|
|
+ attr->len)) > (uintptr_t)a_attrseq + len) {
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
|
||
|
|
--
|