You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's using a fixed size buffer, and there's no checks I could find on the size of a diagnostic message when being added via _iodbcdm_pushsqlerr(), so this will just silently truncate it
The text was updated successfully, but these errors were encountered:
I'm investigating a test failure where our driver fails to connect, and it seems (haven't verified yet) that iODBC is truncating the diagnostic message to "[iODBC][Driver Manager]dlopen(/Users/bamboo/bamboo-agent-home/x". The fact that it's 63 characters makes me think there's a 64 * CODEUNIT_SIZE limit somewhere. Looking more closely at what I pointed out, the 256 char buffer doesn't seem like it would be the cause... But I think it's still a possible issue.
Our driver is a unicode driver btw, and the application is calling into SQLGetDiagRecW, and we're using 3.52.15
See
iODBC/iodbc/herr.c
Line 1031 in d6481a8
It's using a fixed size buffer, and there's no checks I could find on the size of a diagnostic message when being added via _iodbcdm_pushsqlerr(), so this will just silently truncate it
The text was updated successfully, but these errors were encountered: