From: Scott Beil <SBeil@800link.com>
To: pgsql-odbc@postgresql.org
Subject: Static buffer is not thread safe
Date: Sat, 22 Jul 2017 11:41:33 -0500
Message-ID: <877641750-63580@mail.800link.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
Hi psqlODBC Team,
A few days ago, I sent an email with the subject '"relation does not exist" errors with psqlODBC' which described an intermittent error I observed and included a demo project to recreate the problem. The error was 'column "column_name" of relation "table_name" does not exist'.
I haven't heard anything back so I don't know what the status is, but I have found the source of the problem. In the misc.c source file, the function quote_table() declares a static buffer that is not thread safe:
static char buf[200];
Thanks,
Scott
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: SBeil@800link.com
Subject: Re: Static buffer is not thread safe
In-Reply-To: <877641750-63580@mail.800link.com>
References: <877641750-63580@mail.800link.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox