From 86d01c2d9b7030382f659aeb152c029c83c057d7 Mon Sep 17 00:00:00 2001 From: jpirnay Date: Sun, 24 May 2026 21:28:21 +0200 Subject: [PATCH] Fix oom for large page list --- lib/Epub/Epub.cpp | 56 +++++++------------- src/activities/reader/EpubReaderActivity.cpp | 8 ++- 2 files changed, 25 insertions(+), 39 deletions(-) diff --git a/lib/Epub/Epub.cpp b/lib/Epub/Epub.cpp index 6f4bd588..6f0e15d3 100644 --- a/lib/Epub/Epub.cpp +++ b/lib/Epub/Epub.cpp @@ -14,38 +14,13 @@ #include "Epub/parsers/ContainerParser.h" #include "Epub/parsers/ContentOpfParser.h" +#include "Epub/parsers/PageListSink.h" #include "Epub/parsers/PageMapParser.h" #include "Epub/parsers/TocNavParser.h" #include "Epub/parsers/TocNcxParser.h" namespace { -// Serialise a list of printed-page entries (href, anchor, label) to pagelist.bin in the -// book cache. Templated on the parser's entry type so both NCX and EPUB 3 -//