Re: BUG #19604: Bug 9: `plperl_to_hstore` heap overflow with a tied Perl hash

From: Aleksander Alekseev <aleksander(at)tigerdata(dot)com>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: 1217816127(at)qq(dot)com
Subject: Re: BUG #19604: Bug 9: `plperl_to_hstore` heap overflow with a tied Perl hash
Date: 2026-08-03 12:55:12
Message-ID: CAJ7c6TMnbYibWGek0EFWEAZEG91VLOAy5dB0SePHrhqgJ8-y+A@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

Thanks for the report.

> ### Result
>
> The backend crashes during hstore conversion:
>
> ```text
> AddressSanitizer: SEGV
> plperl_to_hstore
> plperl_sv_to_datum
> plperl_func_handler
> server closed the connection unexpectedly
> ```

Yes, that's quite serious. I propose the attached patch.

--
Best regards,
Aleksander Alekseev

Attachment Content-Type Size
v1-0001-hstore_plperl-Fix-crash-when-transforming-a-tied-.patch text/x-patch 3.6 KB

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Ayush Tiwari 2026-08-03 13:16:56 Re: BUG #19603: Vuln47: distance_taxicab and distance_chebyshev silently return 0 instead of NaN when a cube coordin
Previous Message PG Bug reporting form 2026-08-03 09:54:17 BUG #19608: Error while Reindexing Main Table