pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Ranier Vilela <ranier_gyn@hotmail.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: [BUG] Uninitialized var buffer flag used.
Date: Wed, 13 Nov 2019 09:29:46 -0800
Message-ID: <20191113172946.7oadg5kr3qb5vpqh@alap3.anarazel.de> (raw)
In-Reply-To: <MN2PR18MB2927D6FC13EB393CBDC0E713E3760@MN2PR18MB2927.namprd18.prod.outlook.com>
References: <MN2PR18MB2927D6FC13EB393CBDC0E713E3760@MN2PR18MB2927.namprd18.prod.outlook.com>

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





view thread (2+ messages)

Message-ID: <20191113172946.7oadg5kr3qb5vpqh@alap3.anarazel.de>
Permalink:  ../20191113172946.7oadg5kr3qb5vpqh@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20191113172946.7oadg5kr3qb5vpqh@alap3.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andres@anarazel.de, ranier_gyn@hotmail.com
  Subject: Re: [BUG] Uninitialized var buffer flag used.
  In-Reply-To: <20191113172946.7oadg5kr3qb5vpqh@alap3.anarazel.de>
  References: <MN2PR18MB2927D6FC13EB393CBDC0E713E3760@MN2PR18MB2927.namprd18.prod.outlook.com> <20191113172946.7oadg5kr3qb5vpqh@alap3.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox