Re: BUG #19604: Bug 9: `plperl_to_hstore` heap overflow with a tied Perl hash - Mailing list pgsql-bugs

From Aleksander Alekseev
Subject Re: BUG #19604: Bug 9: `plperl_to_hstore` heap overflow with a tied Perl hash
Date
Msg-id CAJ7c6TMnbYibWGek0EFWEAZEG91VLOAy5dB0SePHrhqgJ8-y+A@mail.gmail.com
Whole thread
List 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

pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #19608: Error while Reindexing Main Table
Next
From: Ayush Tiwari
Date:
Subject: Re: BUG #19603: Vuln47: distance_taxicab and distance_chebyshev silently return 0 instead of NaN when a cube coordin