Menu

#68 Fix stack corruption in ODBC file I/O

GC 3.x
open
nobody
None
5 - default
2025-06-29
2025-06-29
Shai Aviv
No

During my testing of the ODBC file I/O handler, I discovered an issue with one of the SQLBindCol function calls. The int ind variable is 4 bytes, whereas SQLLEN is 8 bytes on a 64-bit machine. Passing (SQLPOINTER)&ind to the function corrupted the SQLHSTMT stmtHndl stack variable, which caused the COBOL program to crash with a SIGSEGV error.

1 Attachments

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.