]> git.ipfire.org Git - pakfire.git/commit
libpakfire: execute: Statically allocate the log buffer
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Jan 2021 18:03:42 +0000 (18:03 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Jan 2021 18:03:42 +0000 (18:03 +0000)
commit608bdb89dfca38bc47dc2c8de024160a308380b0
tree2cdd6eb21ca83147efff6db17f0f8bd16a9e3eeb
parenteb5d4fd15e2f14a80c22a5f02b428d12131739ef
libpakfire: execute: Statically allocate the log buffer

This prevents the buffer from growing unboundedly, but limits us to only
process log messages of up to the buffer size.

I have chosen 64k which should be more than enought that we never run
into this situation.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/execute.c
tests/python/execute.py