summaryrefslogtreecommitdiffstats
path: root/src/file_psp.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-07-26 22:33:14 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2014-07-26 22:33:14 +0200
commite31b51b52770bd3023aeda68f715b9a84c9d3ed2 (patch)
tree2cbeec3da89a48345c3523beb9819e6fb88cec07 /src/file_psp.c
parenta40e5a6ab92a6b6cdaf1fbe2aaa1703949e65c8a (diff)
PhotoRec: stricter check for .psp
Diffstat (limited to 'src/file_psp.c')
-rw-r--r--src/file_psp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_psp.c b/src/file_psp.c
index f961f33..4b39133 100644
--- a/src/file_psp.c
+++ b/src/file_psp.c
@@ -76,7 +76,7 @@ static int header_check_psp(const unsigned char *buffer, const unsigned int buff
const unsigned int ver_major=buffer[0x20]+(buffer[0x21]<<8);
reset_file_recovery(file_recovery_new);
file_recovery_new->extension=file_hint_psp.extension;
- if(ver_major>=4)
+ if(ver_major>=4 && file_recovery_new->blocksize >= 16)
{
file_recovery_new->calculated_file_size=0x24;
file_recovery_new->data_check=&data_check_psp;