Re: Avoid use of uninitialized variable (src/pl/plperl/plperl.c) - Mailing list pgsql-hackers

From Ranier Vilela
Subject Re: Avoid use of uninitialized variable (src/pl/plperl/plperl.c)
Date
Msg-id CAEudQApRHoBw7AJn0Nk_RO0Nz8OYTTX=+WLqaukPaU7=0pX2rg@mail.gmail.com
Whole thread Raw
In response to Re: Avoid use of uninitialized variable (src/pl/plperl/plperl.c)  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Em ter., 2 de set. de 2025 às 14:42, Andres Freund <andres@anarazel.de> escreveu:
Hi,

On 2025-09-02 14:39:44 -0300, Ranier Vilela wrote:
> In (src/pl/plperl/plperl.c) if *PERL_SYS_INIT3* is defined and
> *MYMALLOC* is not, is possible use of variable
> *perl_sys_init_done* uninitialized.

Static variables are zero initialized by definition, no?
Yeah. My bad, sorry for the noise.

best regards,
Ranier Vilela

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Avoid use of uninitialized variable (src/pl/plperl/plperl.c)
Next
From: Tom Lane
Date:
Subject: Re: Improve error message for duplicate labels in enum types