Re: [BUG] Uninitialized var buffer flag used.

From: Andres Freund <andres(at)anarazel(dot)de>
To: Ranier Vilela <ranier_gyn(at)hotmail(dot)com>
Cc: "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: [BUG] Uninitialized var buffer flag used.
Date: 2019-11-13 17:29:46
Message-ID: 20191113172946.7oadg5kr3qb5vpqh@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

On 2019-11-13 17:07:00 +0000, Ranier Vilela wrote:
> file: /backend/tsearch/spell.c
> line: 1534
> var: flag

I'll echo Tom's complaint in a nearby thread that the format of these
complaints is distinctly lacking.

But I do agree that this looks at least a bit fishy - if there were an
ispell file without a "flag" line, it does indeed seem that we'd pass an
uninitialized flag to NIAddAffix(), which'd duly cpstrdup() it.

Now, practically that's probably fine, because there's likely to be no
affix files witout flags, but we shouldn't rely on that.

Greetings,

Andres Freund

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2019-11-13 17:47:33 Re: BUG #16112: large, unexpected memory consumption
Previous Message Tomas Vondra 2019-11-13 17:28:03 Re: BUG #16112: large, unexpected memory consumption