Return value of enlarge_query_statement() is never evaluated

From: Rainer Bauer <usenet(at)munnin(dot)com>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Return value of enlarge_query_statement() is never evaluated
Date: 2007-07-16 10:11:01
Message-ID: uvgm935prqq3lg855bbmsm8l3s9rd4i1gr@4ax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hello,

while fixing the ResolveOneParam() bug, I saw that the return value of
enlarge_query_statement() is ignored by all calling functions.

Since that function might free the allocated memory, the result might be
disastrous (i.e. crashing the application). This function is only called via
macros, so I don't see an easy way to fix this.

Hiroshi, what do you think?

Rainer

Browse pgsql-odbc by date

  From Date Subject
Next Message noreply 2007-07-16 13:11:35 [ psqlodbc-Bugs-1007689 ] Returns ODBC 2.0 column names for SQLTables calls but reports ODBC 3.0
Previous Message Rainer Bauer 2007-07-16 10:09:59 Bug in ResolveOneParam()