Tom Lane wrote:
> Bruce Momjian <[EMAIL PROTECTED]> writes:
> > Oops. Yep, that is sloppy programming on our part, perhaps my part if I
> > added those. Anyway, patch attached and applied. I used the proper
> > struct sizes instead of BUFSIZ.
>
> You just broke it.
>
> Those buffers are not use
Tom Lane wrote:
> "PostgreSQL Bugs List" <[EMAIL PROTECTED]> writes:
> > With the THREAD_SAFETY changes, a buffer is defined on the stack as:
> > char pwdbuf[BUFSIZ];
> > This buffer overflows the stack when used in a thread. As the application
> > creating the thread cannot be modified to
Bruce Momjian <[EMAIL PROTECTED]> writes:
> Oops. Yep, that is sloppy programming on our part, perhaps my part if I
> added those. Anyway, patch attached and applied. I used the proper
> struct sizes instead of BUFSIZ.
You just broke it.
Those buffers are not used to hold struct passwd's, but t
"PostgreSQL Bugs List" <[EMAIL PROTECTED]> writes:
> With the THREAD_SAFETY changes, a buffer is defined on the stack as:
> char pwdbuf[BUFSIZ];
> This buffer overflows the stack when used in a thread. As the application
> creating the thread cannot be modified to increase the stack size, i
Oops. Yep, that is sloppy programming on our part, perhaps my part if I
added those. Anyway, patch attached and applied. I used the proper
struct sizes instead of BUFSIZ.
This will be in 8.0. I think it is too risky for 7.4.X but if others
disagree, let me know.
--
The following bug has been logged online:
Bug reference: 1270
Logged by: Peter Davie
Email address: [EMAIL PROTECTED]
PostgreSQL version: 7.4.5
Operating system: OSF/1 4.0f
Description:stack overflow in thread in fe_getauthname
Details:
With the THREAD_SAFETY c
David Fetter <[EMAIL PROTECTED]> writes:
> Mis-expectations. I expected--unreasonably, I see--every part of
> 8.0beta to do dollar quoting and didn't see how the cases of, say,
> pl/python and the regex engine were similar. Is this worth a mention
> as part of the regex docs, or is my expectation
“Heil PostgreSQL!”
How can i unscribe this
list?
Tanks for All!
Junior
On Sun, Sep 26, 2004 at 11:45:42PM -0400, Tom Lane wrote:
> David Fetter <[EMAIL PROTECTED]> writes:
> > CREATE OR REPLACE FUNCTION has_bad_chars(text) RETURNS BOOLEAN
> > AS $function$
> > SELECT $1 ~ $q$[\t\r\n\v|$qq$\$qq$]$q$;
> > $function$ LANGUAGE SQL;
>
> Why would you expect that to w