summaryrefslogtreecommitdiffstats
path: root/src/file_ext2.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-09-30 16:31:09 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2016-09-30 16:31:09 +0200
commit20b02dd16415e21e57c7a36f5e12d631501d8c75 (patch)
tree1817c862eec9e1555f8bd5e4974c08a2c8eb37fe /src/file_ext2.c
parent8a5bc214d7b52627aad61a243140e6a7f0987ace (diff)
PhotoRec: for some file formats, check if file is complete when a new file is found
Diffstat (limited to 'src/file_ext2.c')
-rw-r--r--src/file_ext2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_ext2.c b/src/file_ext2.c
index 4c77219..7bc31a9 100644
--- a/src/file_ext2.c
+++ b/src/file_ext2.c
@@ -63,8 +63,8 @@ static int header_check_ext2_fs(const unsigned char *buffer, const unsigned int
file_recovery->file_stat->file_hint==&file_hint_ext2_fs &&
file_recovery->calculated_file_size==(uint64_t)le32(sb->s_blocks_count)*(EXT2_MIN_BLOCK_SIZE<<le32(sb->s_log_block_size)))
{
- header_ignored(file_recovery_new);
- return 0;
+ if(header_ignored_adv(file_recovery, file_recovery_new)==0)
+ return 0;
}
reset_file_recovery(file_recovery_new);
file_recovery_new->extension=file_hint_ext2_fs.extension;