PhotoRec: check fseek return value in psf file validation
This commit is contained in:
parent
0053652d69
commit
76887c43cb
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue