flb_gzip_compress in flb_gzip.c in Fluent Bit before 1.6.4 has an out-of-bounds write because it does not use the correct calculation of the maximum gzip data-size expansion.
https://github.com/fluent/fluent-bit/commit/cadff53c093210404aed01c4cf586adb8caa07af