summaryrefslogtreecommitdiffstats
path: root/src/file_qbb.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-03-12 13:15:40 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2014-03-12 13:15:40 +0100
commit9dd22eb3f07136d456ac5ca7f90c23d07b07c25b (patch)
tree6591b7e356558d6aaa69061bcc45511bcac572e2 /src/file_qbb.c
parent682a7e810887ca1809b334b6242d0cf1ac7d50f6 (diff)
PhotoRec: some data_check_() were stopping too late
Diffstat (limited to 'src/file_qbb.c')
-rw-r--r--src/file_qbb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_qbb.c b/src/file_qbb.c
index 8ee4794..d387e07 100644
--- a/src/file_qbb.c
+++ b/src/file_qbb.c
@@ -93,7 +93,7 @@ static int header_check_qbb(const unsigned char *buffer, const unsigned int buff
static data_check_t data_check_qbb(const unsigned char *buffer, const unsigned int buffer_size, file_recovery_t *file_recovery)
{
- if(file_recovery->file_size > file_recovery->calculated_file_size+512)
+ if(file_recovery->file_size + buffer_size / 2 > file_recovery->calculated_file_size+512)
{
return DC_STOP;
}