From 607cef92ca280ec81988a90f89fbabb9f0311924 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 30 Sep 2026 11:46:59 +0000 Subject: [PATCH] fix: move SecureHttpClient's 2 KB read buffer off the stack freeink-sdk 838622e -> c5919cf (34aebf6 cherry-picked onto the current pin): readFixed() and readUntilClose() held a 2 KB stack buffer under every body callback and abort poll, so OPDS feed parsing and KOSync ran 2 KB deeper on the calling task. The buffer is now allocated on the first body and freed with the client. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01XgLRarbAmBVepTPKCK7mgd --- CHANGELOG.md | 1 + freeink-sdk | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b770254f96..81913a7bd80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -57,6 +57,7 @@ ### Fixed +- OPDS, KOReader sync and other secure web requests keep their 2 KB read buffer on the heap instead of the calling task's stack, leaving more stack headroom while a catalog page is parsed. - File Transfer choices no longer appear preselected when opened on a touch device. - On the X4 Pro and Sticky, the Home screen no longer stalls waiting for the SD card while the Library indexes in the background. - Small images that are scaled up, such as a short progressive JPEG, are now cached after the first draw instead of being decoded again on every screen refresh. diff --git a/freeink-sdk b/freeink-sdk index 838622edfd0..c5919cf86b7 160000 --- a/freeink-sdk +++ b/freeink-sdk @@ -1 +1 @@ -Subproject commit 838622edfd0393e36a791c01da41f01dfdfb0080 +Subproject commit c5919cf86b754eddff212b723ec0b39843de3544