Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
3ecdf899
Unverified
Commit
3ecdf899
authored
5 years ago
by
Richard Cordovano
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1715 from sleuthkit/3512_heap_read_segv_1111
3512 Sanity check update offset.
parents
dfc10e3d
5f9a3f89
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tsk/fs/ntfs_dent.cpp
+10
-1
10 additions, 1 deletion
tsk/fs/ntfs_dent.cpp
with
10 additions
and
1 deletion
tsk/fs/ntfs_dent.cpp
+
10
−
1
View file @
3ecdf899
...
@@ -664,7 +664,16 @@ ntfs_fix_idxrec(NTFS_INFO * ntfs, ntfs_idxrec * idxrec, uint32_t len)
...
@@ -664,7 +664,16 @@ ntfs_fix_idxrec(NTFS_INFO * ntfs, ntfs_idxrec * idxrec, uint32_t len)
tsk_error_reset
();
tsk_error_reset
();
tsk_error_set_errno
(
TSK_ERR_FS_INODE_COR
);
tsk_error_set_errno
(
TSK_ERR_FS_INODE_COR
);
tsk_error_set_errstr
tsk_error_set_errstr
(
"fix_idxrec: More Update Sequence Entries than idx record size"
);
(
"ntfs_fix_idxrec: More Update Sequence Entries than idx record size"
);
return
1
;
}
uint16_t
upd_off
=
tsk_getu16
(
fs
->
endian
,
idxrec
->
upd_off
);
if
(
upd_off
>
len
||
sizeof
(
ntfs_upd
)
>
(
len
-
upd_off
))
{
tsk_error_reset
();
tsk_error_set_errno
(
TSK_ERR_FS_INODE_COR
);
tsk_error_set_errstr
(
"ntfs_fix_idxrec: Corrupt idx record"
);
return
1
;
return
1
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment