PhotoRec: stricter check .eCryptfs files
This commit is contained in:
parent
4d22466587
commit
02c923b69c
1 changed files with 2 additions and 0 deletions
|
@ -74,6 +74,8 @@ static int header_check_ecryptfs(const unsigned char *buffer, const unsigned int
|
|||
const struct ecrypfs_header *e=(const struct ecrypfs_header *)buffer;
|
||||
if((be32(e->marker1) ^ be32(e->marker2)) != 0x3c81b7f5)
|
||||
return 0;
|
||||
if(be64(e->unencrypted_file_size) < sizeof(struct ecrypfs_header))
|
||||
return 0;
|
||||
reset_file_recovery(file_recovery_new);
|
||||
#ifdef DJGPP
|
||||
file_recovery_new->extension="ecr";
|
||||
|
|
Loading…
Reference in a new issue