| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.tools -> bug in oracle odbc? buffer overflow?
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-ComputerReceived on Wed Mar 31 2004 - 03:55:47 CST
![]() |
![]() |