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: (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc

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?


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-2017 The PostgreSQL Global Development Group