Re: Uninitialized var utilized (src/backend/tsearch/spell.c) - Mailing list pgsql-hackers

From Ranier Vilela
Subject Re: Uninitialized var utilized (src/backend/tsearch/spell.c)
Date
Msg-id CAEudQAp6BpSovJX0iaXo3cqsV-k1NZEM7waKY_rHMNvubjZ_2w@mail.gmail.com
Whole thread Raw
In response to Re: Uninitialized var utilized (src/backend/tsearch/spell.c)  (Daniel Gustafsson <daniel@yesql.se>)
Responses Re: Uninitialized var utilized (src/backend/tsearch/spell.c)
List pgsql-hackers
Em sex., 9 de out. de 2020 às 11:08, Daniel Gustafsson <daniel@yesql.se> escreveu:
> On 9 Oct 2020, at 14:36, Ranier Vilela <ranier.vf@gmail.com> wrote:

> At function NIImportAffixes (src/backend/tsearch/spell.c).
>
> If option "flag" is not handled, variable char flag[BUFSIZE] will remain uninitialized.

To help reviewers, your report should contain an explanation of when that can
happen.

When option "flag" is not handled.
if (STRNCMP(pstr, "flag") == 0)

regards,
Ranier Vilela

pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Uninitialized var utilized (src/backend/tsearch/spell.c)
Next
From: Tom Lane
Date:
Subject: Re: Expansion of our checks for connection-loss errors