From da49873e89d15a4e679b47d3005cc1bcf234ff27 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 28 Mar 2024 11:40:23 +1100 Subject: [PATCH] Fix buffer overflow with BLI_str_format_uint64_grouped Caused by cd4328dd82f13501b5baac4bc745095f9a85193a. --- source/blender/editors/space_file/file_draw.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/space_file/file_draw.cc b/source/blender/editors/space_file/file_draw.cc index 5f1276750e6..89617e04740 100644 --- a/source/blender/editors/space_file/file_draw.cc +++ b/source/blender/editors/space_file/file_draw.cc @@ -289,7 +289,7 @@ static void file_draw_tooltip_custom_func(bContext * /*C*/, uiTooltipData *tip, char size[16]; BLI_filelist_entry_size_to_string(nullptr, file->size, false, size); if (file->size < 10000) { - char size_full[16]; + char size_full[BLI_STR_FORMAT_UINT64_GROUPED_SIZE]; BLI_str_format_uint64_grouped(size_full, file->size); UI_tooltip_text_field_add( tip,