Re: BUG #18925: Heap-buffer-overflow: pglz_compress with pglz_stategy_always

Daniel Gustafsson <daniel@yesql.se>

From: Daniel Gustafsson <daniel@yesql.se>
To: Dilip Kumar <dilipbalaut@gmail.com>
Cc: stasos24@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2025-05-14T19:35:08Z
Lists: pgsql-bugs
> On 13 May 2025, at 10:22, Dilip Kumar <dilipbalaut@gmail.com> wrote:
> On Tue, May 13, 2025 at 7:34 PM PG Bug reporting form
> <noreply@postgresql.org> wrote:

>> Although pglz_compress is not used with pglz_stategy_always.
>> It might be useful in future

> Do you have a reproducible test case or steps to hit this issue?

The way I read it there is now way to reproduce this as the codepath used in
the fuzzer ins't present in postgres (PGLZ_strategy_always is not used by any
callsite).

Whether or not there is a bug in the compression code, or PGLZ_strategy_always
being incorrectly defined, or none of the above, remains to be seen.

--
Daniel Gustafsson