Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> bug in oracle odbc? buffer overflow?

bug in oracle odbc? buffer overflow?

From: Thorsten Engel <thorsten.engel_at_matrix-computer.com>
Date: Wed, 31 Mar 2004 11:55:47 +0200
Message-ID: <c4e4j4$t2s$1@news.netplace.de>


hello,

I do have a long text field which i need to get by multiple reads:

example:

char szTest[10];
memset (szTest,1,sizeof(szTest));
rc = ::SQLGetData(hStmt2, 1, nSQLType, szTest, 6, &cbData);

from my understanding, the buffer szTest should be used from byte 0 to 5 (length =&), but oracle writes an additional 0 to byte 6, what is an out of buffer write. i do not have this problem with mssql, here everything works fine (using 6 bytes, not 7).

any ideas?

-- 
Thorsten Engel

MATRIX-Computer
Received on Wed Mar 31 2004 - 03:55:47 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US