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
8165567c
Commit
8165567c
authored
16 years ago
by
Brian Carrier
Browse files
Options
Downloads
Patches
Plain Diff
HFS Updates
parent
45144e09
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tsk3/fs/hfs.c
+6
-5
6 additions, 5 deletions
tsk3/fs/hfs.c
tsk3/fs/hfs_dent.c
+1
-0
1 addition, 0 deletions
tsk3/fs/hfs_dent.c
with
7 additions
and
5 deletions
tsk3/fs/hfs.c
+
6
−
5
View file @
8165567c
...
@@ -848,7 +848,7 @@ hfs_ext_find_extent_record(HFS_INFO * hfs, uint32_t cnid,
...
@@ -848,7 +848,7 @@ hfs_ext_find_extent_record(HFS_INFO * hfs, uint32_t cnid,
*
*
* @param a_fs File system to analyze
* @param a_fs File system to analyze
* @param a_extents Raw extents to process (in an array of 8)
* @param a_extents Raw extents to process (in an array of 8)
* @param a_start_off Starting b
yte
offset of these runs
* @param a_start_off Starting b
lock
offset of these runs
* @returns NULL on error
* @returns NULL on error
*/
*/
static
TSK_FS_ATTR_RUN
*
static
TSK_FS_ATTR_RUN
*
...
@@ -881,7 +881,7 @@ hfs_extents_to_attr(TSK_FS_INFO * a_fs, const hfs_ext_desc * a_extents,
...
@@ -881,7 +881,7 @@ hfs_extents_to_attr(TSK_FS_INFO * a_fs, const hfs_ext_desc * a_extents,
head_run
=
cur_run
;
head_run
=
cur_run
;
if
(
prev_run
!=
NULL
)
if
(
prev_run
!=
NULL
)
prev_run
->
next
=
cur_run
;
prev_run
->
next
=
cur_run
;
cur_off
+=
(
cur_run
->
len
*
a_fs
->
block_size
)
;
cur_off
+=
cur_run
->
len
;
prev_run
=
cur_run
;
prev_run
=
cur_run
;
}
}
...
@@ -1119,9 +1119,6 @@ hfs_ext_find_extent_record_attr(HFS_INFO * hfs, uint32_t cnid,
...
@@ -1119,9 +1119,6 @@ hfs_ext_find_extent_record_attr(HFS_INFO * hfs, uint32_t cnid,
else
if
((
rec_cnid
>
cnid
)
||
(
key
->
fork_type
[
0
]
!=
0
))
else
if
((
rec_cnid
>
cnid
)
||
(
key
->
fork_type
[
0
]
!=
0
))
break
;
break
;
// get the starting offset of this extent
ext_off
=
tsk_getu32
(
fs
->
endian
,
key
->
start_block
);
keylen
=
tsk_getu16
(
fs
->
endian
,
key
->
key_len
);
keylen
=
tsk_getu16
(
fs
->
endian
,
key
->
key_len
);
if
(
rec_off
+
keylen
>
nodesize
)
{
if
(
rec_off
+
keylen
>
nodesize
)
{
tsk_errno
=
TSK_ERR_FS_GENFS
;
tsk_errno
=
TSK_ERR_FS_GENFS
;
...
@@ -1132,8 +1129,12 @@ hfs_ext_find_extent_record_attr(HFS_INFO * hfs, uint32_t cnid,
...
@@ -1132,8 +1129,12 @@ hfs_ext_find_extent_record_attr(HFS_INFO * hfs, uint32_t cnid,
return
1
;
return
1
;
}
}
// get the starting offset of this extent
ext_off
=
tsk_getu32
(
fs
->
endian
,
key
->
start_block
);
// convert the extents to the TSK format
// convert the extents to the TSK format
extents
=
(
hfs_extents
*
)
&
node
[
rec_off
+
keylen
];
extents
=
(
hfs_extents
*
)
&
node
[
rec_off
+
keylen
];
attr_run
=
attr_run
=
hfs_extents_to_attr
(
fs
,
extents
->
extents
,
ext_off
);
hfs_extents_to_attr
(
fs
,
extents
->
extents
,
ext_off
);
if
(
attr_run
==
NULL
)
{
if
(
attr_run
==
NULL
)
{
...
...
This diff is collapsed.
Click to expand it.
tsk3/fs/hfs_dent.c
+
1
−
0
View file @
8165567c
...
@@ -869,6 +869,7 @@ hfs_dir_open_meta(TSK_FS_INFO * fs, TSK_FS_DIR ** a_fs_dir,
...
@@ -869,6 +869,7 @@ hfs_dir_open_meta(TSK_FS_INFO * fs, TSK_FS_DIR ** a_fs_dir,
return
TSK_ERR
;
return
TSK_ERR
;
}
}
}
}
cur_node
=
tsk_getu32
(
fs
->
endian
,
node_desc
->
flink
);
}
}
else
{
else
{
tsk_errno
=
TSK_ERR_FS_GENFS
;
tsk_errno
=
TSK_ERR_FS_GENFS
;
...
...
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