summaryrefslogtreecommitdiffstats
path: root/src/file_pzh.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-07-26 22:34:01 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2014-07-26 22:34:01 +0200
commit43c7045c0b583f1c9a3d38e7e5ebf678681b5318 (patch)
tree1855153f687a79aba8fd5b22358871a9a3f23b81 /src/file_pzh.c
parentdfbfaa1211784287c4efac494629b163f07967dc (diff)
PhotoRec: define a minimal size for .pzh files
Diffstat (limited to 'src/file_pzh.c')
-rw-r--r--src/file_pzh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/file_pzh.c b/src/file_pzh.c
index 7c6f5b7..5b0d30e 100644
--- a/src/file_pzh.c
+++ b/src/file_pzh.c
@@ -80,6 +80,7 @@ static int header_check_pzh(const unsigned char *buffer, const unsigned int buff
reset_file_recovery(file_recovery_new);
file_recovery_new->extension=file_hint_pzh.extension;
file_recovery_new->file_rename=&file_rename_pzh;
+ file_recovery_new->min_filesize=0x9c4 + sizeof(pzh_header);
return 1;
}
return 0;