summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlliver Schinagl <oliver@schinagl.nl>2021-01-19 20:32:07 +0100
committerTimo Teräs <timo.teras@iki.fi>2022-02-14 20:29:15 +0200
commit9d71b61c5ca8222fba170fd5f7c5be18e0cde322 (patch)
treef1c161720eec9daa555752d4645b30fbfd7bf930
parentba3a5a2555463cc6200ab01174116cbd80d1958d (diff)
downloadapk-tools-2.10-stable.tar.gz
apk-tools-2.10-stable.tar.bz2
apk-tools-2.10-stable.tar.xz
apk-tools-2.10-stable.zip
io: Handle really long lines2.10-stable
While commit 18b0b45 (io: Handle long lines, Thu Jan 7 17:25:23 2021 +0100) did attempt to address this issue, the buffer really is still to small when dealing with big-big dependency lists. Lets make it sufficiently large for now, until the new APKINDEX format can support multi-line dependencies, making this not needed any more. [TT: Originally the buffer size was conservative to run on resource constrained embedded platforms. But since the available memory on those has also increased much, the adjustment to 128kB makes sense also to increase performance a little bit. Backported to 2.10-stable.] Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
-rw-r--r--src/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io.c b/src/io.c
index 47f34bf..414e4e2 100644
--- a/src/io.c
+++ b/src/io.c
@@ -213,7 +213,7 @@ struct apk_istream_bstream {
struct apk_bstream bs;
struct apk_istream *is;
apk_blob_t left;
- char buffer[8*1024];
+ char buffer[128*1024];
};
static void is_bs_get_meta(struct apk_bstream *bs, struct apk_file_meta *meta)