src/file_ext.c: fix Array-bounds issue
See bug report: https://github.com/cgsecurity/testdisk/issues/104 Thanks to Daniil Frolov for reporting the problem.
This commit is contained in:
parent
97f517280d
commit
0ae7969c12
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ const file_hint_t file_hint_ext2_sb= {
|
||||||
@*/
|
@*/
|
||||||
static void file_rename_ext(file_recovery_t *file_recovery)
|
static void file_rename_ext(file_recovery_t *file_recovery)
|
||||||
{
|
{
|
||||||
unsigned char buffer[512];
|
unsigned char buffer[1024];
|
||||||
char buffer_cluster[32];
|
char buffer_cluster[32];
|
||||||
FILE *file;
|
FILE *file;
|
||||||
const struct ext2_super_block *sb=(const struct ext2_super_block *)&buffer;
|
const struct ext2_super_block *sb=(const struct ext2_super_block *)&buffer;
|
||||||
|
|
Loading…
Reference in a new issue