summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2022-08-11 16:03:41 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2022-08-11 16:03:41 +0200
commit0ae7969c1243a0fc048b34cc7b24c54acc257029 (patch)
treef3ad9f49110af1a62e84f3783b128d8c890a5bc0
parent97f517280d8403acb92741ec5d7da63bf44e019c (diff)
src/file_ext.c: fix Array-bounds issueHEADmaster
See bug report: https://github.com/cgsecurity/testdisk/issues/104 Thanks to Daniil Frolov for reporting the problem.
-rw-r--r--src/file_ext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_ext.c b/src/file_ext.c
index 3b1837d..1cb26ce 100644
--- a/src/file_ext.c
+++ b/src/file_ext.c
@@ -53,7 +53,7 @@ const file_hint_t file_hint_ext2_sb= {
@*/
static void file_rename_ext(file_recovery_t *file_recovery)
{
- unsigned char buffer[512];
+ unsigned char buffer[1024];
char buffer_cluster[32];
FILE *file;
const struct ext2_super_block *sb=(const struct ext2_super_block *)&buffer;