[HACKERS] Output functions with multiple arguments considered harmful

2005-04-30 Thread Tom Lane
An example that Elein put up yesterday: http://archives.postgresql.org/pgsql-general/2005-04/msg01384.php caused me to realize that type output functions that depend on additional arguments to determine what they are dealing with are fundamentally security holes. It is trivial to crash 8.0's

Re: [HACKERS] Output functions with multiple arguments considered harmful

2005-04-30 Thread elein
On Sat, Apr 30, 2005 at 04:17:59PM -0400, Tom Lane wrote: An example that Elein put up yesterday: http://archives.postgresql.org/pgsql-general/2005-04/msg01384.php caused me to realize that type output functions that depend on additional arguments to determine what they are dealing with are

Re: [HACKERS] Output functions with multiple arguments considered harmful

2005-04-30 Thread Tom Lane
[EMAIL PROTECTED] (elein) writes: On Sat, Apr 30, 2005 at 04:17:59PM -0400, Tom Lane wrote: It is trivial to crash 8.0's record_out by lying to it about the rowtype of its first argument. Is it not as trivial to crash it if one passes bad data into it? Why is the oid arg worse than the data

Re: [HACKERS] Output functions with multiple arguments considered

2005-04-30 Thread James William Pye
On Sat, 2005-04-30 at 16:17 -0400, Tom Lane wrote: An example that Elein put up yesterday: http://archives.postgresql.org/pgsql-general/2005-04/msg01384.php caused me to realize that type output functions that depend on additional arguments to determine what they are dealing with are

Re: [HACKERS] Output functions with multiple arguments considered harmful

2005-04-30 Thread elein
On Sat, Apr 30, 2005 at 05:31:28PM -0400, Tom Lane wrote: [EMAIL PROTECTED] (elein) writes: On Sat, Apr 30, 2005 at 04:17:59PM -0400, Tom Lane wrote: It is trivial to crash 8.0's record_out by lying to it about the rowtype of its first argument. Is it not as trivial to crash it if one