From 0ae7969c1243a0fc048b34cc7b24c54acc257029 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Thu, 11 Aug 2022 16:03:41 +0200 Subject: [PATCH] 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. --- src/file_ext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file_ext.c b/src/file_ext.c index 3b1837d1..1cb26cec 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;