summaryrefslogtreecommitdiffstats
path: root/src/file_flv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-07-26 15:38:05 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2014-07-26 15:38:05 +0200
commit95c0ae6a66ab4c27ed652a8f26c366fd4c71157c (patch)
tree6f5d6b9ea21e42189e1437586de22226f1aa5613 /src/file_flv.c
parentf04e826b1c088402a2bc0a610ceadbc40515d17e (diff)
PhotoRec: disable check of .flv for small blocksize
Diffstat (limited to 'src/file_flv.c')
-rw-r--r--src/file_flv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/file_flv.c b/src/file_flv.c
index 588e0ed..3aaeacb 100644
--- a/src/file_flv.c
+++ b/src/file_flv.c
@@ -98,6 +98,8 @@ static int header_check_flv(const unsigned char *buffer, const unsigned int buff
{
reset_file_recovery(file_recovery_new);
file_recovery_new->extension=file_hint_flv.extension;
+ if(file_recovery_new->blocksize < 15)
+ return 1;
file_recovery_new->calculated_file_size=be32(flv->data_offset);
file_recovery_new->data_check=&data_check_flv;
file_recovery_new->file_check=&file_check_size;