From b6d43ec0fe70da87c066a185987f6cee156f278e Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Thu, 19 Mar 2026 12:39:06 +0000 Subject: [PATCH] plug-ins: Allocate more space for 4bpp TIM textures Resolves #16052 Per mzfr, the pixel array for 4bpp TIM textures needs to be allocated twice as large since each byte in the file stores two pixel indexes when opened. --- plug-ins/common/file-tim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug-ins/common/file-tim.c b/plug-ins/common/file-tim.c index a0c52f0566..bd2f7d0896 100644 --- a/plug-ins/common/file-tim.c +++ b/plug-ins/common/file-tim.c @@ -524,7 +524,7 @@ load_image (GFile *file, for (gint i = 0; i < height; i++) { - guchar row[width]; + guchar row[width * 2]; fread (&pixels, width, 1, fp);