sleuthkit/0004-Cast-attrseq-address-to-uintptr_t-so-that-the-correc.patch

25 lines
890 B
Diff
Raw Normal View History

2020-12-16 15:40:24 +08:00
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;
}
--