Re: [PATCHES] mcxt.c - Mailing list pgsql-hackers

From Alvaro Herrera Munoz
Subject Re: [PATCHES] mcxt.c
Date
Msg-id 20030909151457.GA657@dcc.uchile.cl
Whole thread Raw
In response to Re: [PATCHES] mcxt.c  ("Gaetano Mendola" <mendola@bigfoot.com>)
Responses Re: [PATCHES] mcxt.c  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Tue, Sep 09, 2003 at 04:53:06PM +0200, Gaetano Mendola wrote:
> "Andrew Dunstan" <andrew@dunslane.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[@]dcc.uchile.cl>)
"Use it up, wear it out, make it do, or do without"


pgsql-hackers by date:

Previous
From: "luke"
Date:
Subject: libpq++
Next
From: Andrew Dunstan
Date:
Subject: Re: [PATCHES] mcxt.c