_SQLGetStmtAttr() uses size_t internaly, but should use SQLUINTEGER.
Size of SQLUINTEGER is 4 bytes at FreeBSD/amd64 platform, but size of
size_t is 8 !!! So in some cases it can lead to stack corruption.
Problem was introduced at revision 1.226 of odbc.c by Steve Murphree patch
which was merged at Thu Aug 28 16:03:56 2003 UTC.
Sounds like nobody never run odbc/unittests/attributes.c test under amd64.
It pass pointer to SQLINTEGER type as parameter to _SQLGetStmtAttr().
Nobody/Anonymous
odbc
None
Public