Null-terminate the output buffer of LZ4Stream_gets
Tomas Vondra <tomas.vondra@postgresql.org>
Null-terminate the output buffer of LZ4Stream_gets LZ4Stream_gets did not null-terminate its output buffer. The callers expected the buffer to be null-terminated and passed it around to functions such as sscanf with unintended consequences. Author: Georgios Kokolatos <gkokolatos@pm.me> Reported-by: Alexander Lakhin <exclusion@gmail.com> Discussion: https://postgr.es/m/94ae9bca-5ebb-1e68-bb7b-4f32e89fefbe@gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_dump/compress_lz4.c | modified | +11 −1 |
Discussion
- Add LZ4 compression in pg_dump 205 messages · 2022-02-25 → 2025-10-14