Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 69D879FB3FD for ; Mon, 16 Jul 2007 07:08:41 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 90934-01 for ; Mon, 16 Jul 2007 07:08:29 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 4A6BB9FB313 for ; Mon, 16 Jul 2007 07:08:38 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id EDD7F31429; Mon, 16 Jul 2007 12:08:27 +0200 (MET DST) From: Rainer Bauer X-Newsgroups: pgsql.interfaces.odbc Subject: Return value of enlarge_query_statement() is never evaluated Date: Mon, 16 Jul 2007 12:11:01 +0200 Organization: Hub.Org Networking Services Lines: 12 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org X-Newsreader: Forte Agent 4.2/32.1117 To: pgsql-odbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.246 tagged_above=0 required=5 tests=AWL=0.245, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200707/19 X-Sequence-Number: 9074 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