Re: pnstrdup considered armed and dangerous - Mailing list pgsql-hackers

From Geoff Winkless
Subject Re: pnstrdup considered armed and dangerous
Date
Msg-id CAEzk6fcefBoi=-hw_3XW_9eysjkeJiWQGpZs7v7Z0pkL4v3iHw@mail.gmail.com
Whole thread Raw
In response to Re: pnstrdup considered armed and dangerous  (Geoff Winkless <pgsqladmin@geoff.dj>)
List pgsql-hackers
On 4 October 2016 at 14:12, Geoff Winkless <pgsqladmin@geoff.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



pgsql-hackers by date:

Previous
From: Geoff Winkless
Date:
Subject: Re: pnstrdup considered armed and dangerous
Next
From: Amit Kapila
Date:
Subject: Re: WIP: Covering + unique indexes.