PDA

View Full Version : bug in oracle odbc? buffer overflow?


Thorsten Engel
03-31-2004, 01:55 AM
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


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service