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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Performance/Security question on caching function OIDs for a connection
Дата
Msg-id 571.1161205901@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Performance/Security question on caching function OIDs for a connection  (Weslee Bilodeau <weslee.bilodeau@hypermediasystems.com>)
Список pgsql-hackers
Weslee Bilodeau <weslee.bilodeau@hypermediasystems.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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Weslee Bilodeau
Дата:
Сообщение: Performance/Security question on caching function OIDs for a connection
Следующее
От: "jungmin shin"
Дата:
Сообщение: UDF and cache