Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions libfsntfs/libfsntfs_mft_entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -1497,6 +1497,22 @@ int libfsntfs_mft_entry_read_attribute_list_data_mft_entry_by_index(
{
return( 0 );
}
if( (data_mft_entry->header->flags & LIBFSNTFS_MFT_ENTRY_FLAG_IN_USE) == 0 )
{
#if defined( HAVE_DEBUG_OUTPUT )
if( libcnotify_verbose != 0 )
{
libcnotify_printf(
"%s: Unexpected reading data unused file reference: %" PRIu64 "-%" PRIu16 "\n",
function,
attribute_list_data_mft_entry,
(uint16_t) ( file_reference >> 48 ) );
libcnotify_printf(
"\n" );
}
#endif
return( 0 );
}
if( libfsntfs_mft_entry_header_get_base_record_file_reference(
data_mft_entry->header,
&base_record_file_reference,
Expand Down