Re: pgsql: Null-terminate the output buffer of LZ4Stream_gets

2023-05-17 Thread Thom Brown
On Wed, 17 May 2023 at 15:38, Tomas Vondra wrote: > > 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 consequen

pgsql: Null-terminate the output buffer of LZ4Stream_gets

2023-05-17 Thread Tomas Vondra
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 Reported-by: Alexander Lakhi