mirror of
https://github.com/containers/podman.git
synced 2026-07-09 14:54:59 -04:00
The compat logs handler uses the tail query parameter both to select how many log lines should be returned and as the capacity of the internal log channel. Only the former is part of the API semantics. The channel capacity should not depend on a user-controlled value: negative values can produce an invalid channel size, while very large values can cause excessive allocation before any logs are read. Use a small fixed-size buffer instead. Signed-off-by: Mikhail Dmitrichenko <m.dmitrichenko00@bk.ru>