DB2 - Problem description
Problem IT30803 | Status: Closed |
INCORRECT LENGTH FOR SQL_LOCAL_LEN AND SQL_CODESET_LEN ON AIX | |
product: | |
DB2 FOR LUW / DB2FORLUW / B50 - DB2 | |
Problem description: | |
SQL_LOCAL_LEN and SQL_CODESET_LEN are too short on AIX. This causes memory corruption when used to calling DB2 APIs like db2CfgGet(). | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * Developing application to call DB2 APIs on AIX * **************************************************************** * PROBLEM DESCRIPTION: * * First fixed in v11.1 M4 FP5. This will not be fixed in v10.5 * **************************************************************** * RECOMMENDATION: * * Apply v10.5 FP 10 to the system where the application is * * being developed. * **************************************************************** | |
Local Fix: | |
Instead of using: char territory[SQL_LOCALE_LEN+1] = "terr"; char codeset[SQL_CODESET_LEN+1] = "codeset"; Manually change the lengths to: char territory[33+1] = "terr"; char codeset[17+1] = "codeset"; | |
Solution | |
Workaround | |
See LOCAL FIX. | |
BUG-Tracking | |
forerunner : IT21772 follow-up : | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 31.10.2019 31.10.2019 31.10.2019 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) |