Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-odbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group