Re: may be a buffer overflow problem

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: Winter Loo <winterloo(at)126(dot)com>, pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: may be a buffer overflow problem
Date: 2024-06-14 08:29:31
Message-ID: fc876438848ec2b6f52954fa3eb98f51dc21d988.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 2024-06-14 at 10:10 +0200, Daniel Gustafsson wrote:
> > On 14 Jun 2024, at 10:06, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> wrote:
>
> > So you think we should ignore that compiler warning?
>
> We already do using this in meson.build:
>
>   # Similarly disable useless truncation warnings from gcc 8+
>   'format-truncation',
>   'stringop-truncation',

Right; and I see that -Wno-stringop-truncation is also set if you build
with "make". So your patch is good.

I wonder how Winter Loo got to see that warning...

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2024-06-14 08:39:12 Re: may be a buffer overflow problem
Previous Message Daniel Gustafsson 2024-06-14 08:10:42 Re: may be a buffer overflow problem