From: Lothar Behrens <lothar.behrens@lollisoft.de>
To: pgsql-odbc@postgresql.org
Subject: ODBC SQLSetPos Delete problem
Date: Tue, 7 Sep 2004 22:15:24 +0200
Message-ID: <200409072015.i87KFPt02468@jedi.behrens.de> (raw)
Hi,
some weeks I have asked about a possible bug in pSQLODBC driver.
Now I have downloaded the driver source to get a debug version
of the driver.
The problem occurs at the following code line (973) in statement.c:
Code area:
mylog("type = %d and valuepointer here is %p\n", type, value);
if (self->manual_result) {
value = QR_get_value_manual(res, self->currTuple, lf);
mylog("manual_result\n");
} else if (SC_is_fetchcursor(self))
value = QR_get_value_backend(res, lf);
else {
int curt = GIdx2ResultIdx(self->currTuple, self, res);
value = QR_get_value_backend_row(res, curt, lf);
}
mylog("value = '%s'\n", (value == NULL) ? "<NULL>" : value); // CRASH
The pointer value is 0xdddddddd
As for the log messages now I see , that I have forgotten a reload
after the deletion and the driver may not save this state to avoid
such a crash.
I do not know where the pointer comes from, but see this as a hint:
Could this be used for buffer overruns ?
Hope to hear from you :-)
Lothar
---- My home: www.lollisoft.de -----------------------------
Lothar Behrens | Independent: lothar.behrens@gmx.de
Rosmarinstr 3 | My public project:
40235 Düsseldorf | http://sourceforge.net/projects/lbdmf
| -> Need comments, please visit :-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: lothar.behrens@lollisoft.de
Subject: Re: ODBC SQLSetPos Delete problem
In-Reply-To: <200409072015.i87KFPt02468@jedi.behrens.de>
References: <200409072015.i87KFPt02468@jedi.behrens.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox