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

From Ranier Vilela
Subject Avoid use of uninitialized variable (src/pl/plperl/plperl.c)
Date
Msg-id CAEudQArdmr+XMC1uSO36zMiKKrNkm0Vj4=tt2DN7TO5VrPNvwA@mail.gmail.com
Whole thread Raw
Responses Re: Avoid use of uninitialized variable (src/pl/plperl/plperl.c)
List pgsql-hackers
Hi.

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.

To fix, explicitly initialize the variable.
In pass change type to bool, what was the initial intention.

trivial patch attached.

best regards,
Ranier Vilela
Attachment

pgsql-hackers by date:

Previous
From: David Geier
Date:
Subject: Disabling memory overcommit deemed dangerous
Next
From: Andres Freund
Date:
Subject: Re: Avoid use of uninitialized variable (src/pl/plperl/plperl.c)