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
0dc09cbc
Commit
0dc09cbc
authored
7 years ago
by
Ann Priestman
Browse files
Options
Downloads
Patches
Plain Diff
Add check that the extended partition has not already been added
parent
1833d44c
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/vs/dos.c
+19
-0
19 additions, 0 deletions
tsk/vs/dos.c
with
19 additions
and
0 deletions
tsk/vs/dos.c
+
19
−
0
View file @
0dc09cbc
...
@@ -751,6 +751,25 @@ dos_load_ext_table(TSK_VS_INFO * vs, TSK_DADDR_T sect_cur,
...
@@ -751,6 +751,25 @@ dos_load_ext_table(TSK_VS_INFO * vs, TSK_DADDR_T sect_cur,
* in extended partitions */
* in extended partitions */
if
(
dos_is_ext
(
part
->
ptype
))
{
if
(
dos_is_ext
(
part
->
ptype
))
{
TSK_VS_PART_INFO
*
part_info
;
/* Sanity check to prevent infinite recursion in dos_load_ext_table.
* If we already have a partition with this starting address then
* return an error. This will prevent any more partitions from being
* added but will leave any existing partitions alone. */
part_info
=
vs
->
part_list
;
while
(
part_info
!=
NULL
)
{
if
(
part_info
->
start
==
(
TSK_DADDR_T
)(
sect_ext_base
+
part_start
))
{
if
(
tsk_verbose
)
tsk_fprintf
(
stderr
,
"Starting sector %"
PRIuDADDR
" of extended partition has already been used
\n
"
,
(
TSK_DADDR_T
)(
sect_ext_base
+
part_start
));
return
1
;
}
part_info
=
part_info
->
next
;
}
/* part start is added to the start of the
/* part start is added to the start of the
* first extended partition (the primary
* first extended partition (the primary
* extended partition) */
* extended partition) */
...
...
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