PhotoRec: check fseek return value in psf file validation

This commit is contained in:
Christophe Grenier 2011-10-15 12:10:10 +02:00
parent 0053652d69
commit 76887c43cb

View file

@ -73,12 +73,12 @@ static void file_check_spf(file_recovery_t *file_recovery)
{
unsigned char*buffer;
buffer=(unsigned char*)MALLOC(READ_SIZE);
file_recovery->file_size=0;
if(fseek(file_recovery->handle, 0, SEEK_SET)<0)
{
free(buffer);
return;
}
file_recovery->file_size=0;
while(1)
{
int i;