Re: Performance/Security question on caching function OIDs for a connection

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Weslee Bilodeau <weslee(dot)bilodeau(at)hypermediasystems(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Performance/Security question on caching function OIDs for a connection
Date: 2006-10-18 21:11:41
Message-ID: 571.1161205901@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Weslee Bilodeau <weslee(dot)bilodeau(at)hypermediasystems(dot)com> writes:
> On the input and output functions for the new type, I lookup the
> encrypt/decrypt functions using -
> FuncnameGetCandidates( list_make1( makeString( "decrypt" ) )
> Running through the list and getting the functions OID, then calling
> with OidFunctionCall3().

Yech. That sounds trivially crashable, just define decrypt() to do
something other than what your code is expecting....

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message jungmin shin 2006-10-18 21:15:13 UDF and cache
Previous Message Magnus Hagander 2006-10-18 20:56:00 Contrib Makefiles