Re: [PATCHES] mcxt.c

From: Alvaro Herrera Munoz <alvherre(at)dcc(dot)uchile(dot)cl>
To: Gaetano Mendola <mendola(at)bigfoot(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org, Andrew Dunstan <andrew(at)dunslane(dot)net>
Subject: Re: [PATCHES] mcxt.c
Date: 2003-09-09 15:14:57
Message-ID: 20030909151457.GA657@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On Tue, Sep 09, 2003 at 04:53:06PM +0200, Gaetano Mendola wrote:
> "Andrew Dunstan" <andrew(at)dunslane(dot)net> wrote:
> > The particular assertion that was proposed doesn't strike me as terribly
> > useful - It should be checked at the point of call rather than inside
> > pstrdup, I should have thought.
>
> Are you going to trust the client of that function ?

Yes, because it can only used in backend code and C functions, which
can be written only by a trusted user ('cause C is an untrusted language).

(I might be wrong...)

--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>)
"Use it up, wear it out, make it do, or do without"

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Richard Hall 2003-09-09 15:27:24 Re: plpgsql doesn't coerce boolean expressions to boolean
Previous Message luke 2003-09-09 15:08:12 libpq++

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Dunstan 2003-09-09 15:33:03 Re: [PATCHES] mcxt.c
Previous Message Gaetano Mendola 2003-09-09 14:53:06 Re: [PATCHES] mcxt.c