From 0fb55553b7af6c089260ffbc5460a87b9c246d93 Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Wed, 29 Mar 2023 15:26:22 +0200 Subject: [PATCH] fix(core): increase work buffer size for jpeg decompression [no changelog] --- core/embed/extmod/modtrezorui/buffers.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/embed/extmod/modtrezorui/buffers.h b/core/embed/extmod/modtrezorui/buffers.h index ca3f1431e..7cbaab649 100644 --- a/core/embed/extmod/modtrezorui/buffers.h +++ b/core/embed/extmod/modtrezorui/buffers.h @@ -41,7 +41,9 @@ // 3100 is needed according to tjpgd docs, // 256 because we need non overlapping memory in rust // 6 << 10 is for huffman decoding table -#define JPEG_WORK_SIZE (3100 + 256 + (6 << 10)) +// 1000 bytes reserve, as we discovered that we are running out of memory +// sometimes +#define JPEG_WORK_SIZE (3100 + 256 + (6 << 10) + 1000) #if defined BOOTLOADER #define BUFFER_SECTION __attribute__((section(".buf")))