Fix size limit in zck.c
authorJonathan Dieter <jdieter@gmail.com>
Sat, 12 Mar 2022 14:27:19 +0000 (14:27 +0000)
committerJonathan Dieter <jdieter@gmail.com>
Sat, 12 Mar 2022 16:40:42 +0000 (16:40 +0000)
commitc74ff02747a3b00fef9e98346452ab99672d97b0
tree72fe4dc5b6a9b19721449f83e6667f32e5f79d02
parentdd6a30a1e4e8b738b0cafc682f3c00e7706134e5
Fix size limit in zck.c

Up to now zck.c reads the whole file into memory and then sends it to
zck_write to actually compress.  This is highly inefficient, but was done
to simplify dealing with a string separator.  This commit fixes this by
reading the file in chunks, and, if using a string separator, keeps track
of the matching bytes from chunk to chunk.

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
src/zck.c