PhotoRec: fix file_rsearch() function to avoid a false positive.
Thanks to Adel KHALDI from Blue Frost Security GmbH for asking how this function was working.
This commit is contained in:
parent
0f97d72be8
commit
3b482239db
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ AC_INIT([testdisk],[7.1-WIP],[grenier@cgsecurity.org])
|
|||
AC_LANG(C)
|
||||
sinclude(acx_pthread.m4)
|
||||
sinclude(mkdir.m4)
|
||||
TESTDISKDATE="May 2017"
|
||||
TESTDISKDATE="July 2017"
|
||||
AC_SUBST(TESTDISKDATE)
|
||||
AC_DEFINE_UNQUOTED([TESTDISKDATE],"$TESTDISKDATE",[Date of release])
|
||||
AC_CONFIG_AUX_DIR(config)
|
||||
|
|
|
@ -220,7 +220,7 @@ uint64_t file_rsearch(FILE *handle, uint64_t offset, const void*footer, const un
|
|||
return offset + i;
|
||||
}
|
||||
}
|
||||
memcpy(buffer+read_size,buffer,footer_length-1);
|
||||
memcpy(buffer+4096,buffer,footer_length-1);
|
||||
} while(offset>0);
|
||||
free(buffer);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue