Static buffer is not thread safe

From: Scott Beil <SBeil(at)800link(dot)com>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Static buffer is not thread safe
Date: 2017-07-22 16:41:33
Message-ID: 877641750-63580@mail.800link.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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

Browse pgsql-odbc by date

  From Date Subject
Next Message Hiroshi Saito 2017-07-27 12:46:51 psqlODBC 09.06.0410 Released
Previous Message Malik Al-RaWahi 2017-07-22 03:45:36 postgresql odbc