Re: pnstrdup considered armed and dangerous

From: Geoff Winkless <pgsqladmin(at)geoff(dot)dj>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Cc: Andres Freund <andres(at)anarazel(dot)de>
Subject: Re: pnstrdup considered armed and dangerous
Date: 2016-10-04 13:17:17
Message-ID: CAEzk6fcefBoi=-hw_3XW_9eysjkeJiWQGpZs7v7Z0pkL4v3iHw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 4 October 2016 at 14:12, Geoff Winkless <pgsqladmin(at)geoff(dot)dj> wrote:
> Well I wouldn't say it's wrong, exactly. It might produce a segfault
> if relationName[NAMEDATALEN] is outside readable memory for the
> process, but otherwise it will behave as defined.

Finger slippage. Of course I meant

... if relationName[NAMEDATALEN-1] is outside...

Geoff

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2016-10-04 13:20:35 Re: WIP: Covering + unique indexes.
Previous Message Geoff Winkless 2016-10-04 13:12:18 Re: pnstrdup considered armed and dangerous