Closed as program error.
See Problem Summary.
APAR NUMBER: PJ40684 PRODUCT: z/TPF FUNCTIONAL AREA: TPFAR SQLAM SQL HANDLER SHIPPED IN PUT: 10 ABSTRACT: An OPR-4 dump may result from TPFAR if the user ID or password fields specified using the ZSQLD command contain eight characters. PACKAGE CONTENTS: Source Segments: (C) base/rt/ar/crdk.c Object Only Binaries: None. Configuration Independent Binaries: (C) base/load/CRDA.so (C) base/load/CREA.so (C) base/obj/crdk.o Support Files: base/lst/crdk.lst base/lst/CRDA.map base/lst/CREA.map OTHER BINARIES TO BUILD: NO None. COMMENTS: When an application attempts to connect to a remote database using TCP/IP, a user id and optional password are specified. The user id and password were specified using the ZSQLD ADD command. When an applications attempts to connect to the database, TPFAR segment crdk.c builds the variables to send to the remote database. The exact size of the user id and password fields are passed to DB2. To compute this size, the string function strlen() is used passing as an argument a character array of eight elements. If less than eight alphanumeric characters are passed as input, the strlen() function computes the correct size since the array got initialized and will therefore be null terminated. If exactly eight characters are specified, the maximum number of characters, the strlen() function will continue to search for a null terminator passed the end of the supplied field. Depending upon what data is contained after these fields, the correct size may be used, an incorrect size may be used or an OPR-4 dump may result.
SOLUTION: TPFAR segment crdk.c has been modified to not always use the strlen() function to compute the size of the user id and password fields. If the maximum number of characters is passed for either field, the sizeof() function is used to compute the size. COREQS: NO None. MIGRATION CONSIDERATIONS: NO None. BUILD COMMANDS AND INSTRUCTIONS: YES #maketpf commands for linux maketpf -f CRDA crdk.o maketpf -f CREA crdk.o maketpf CRDA link maketpf CREA link UPDATED INFORMATION UNITS: NO None. See your IBM representative if you need additional information. DOWNLOAD INSTRUCTIONS: http://www.ibm.com/software/htp/tpf/maint/maintztpf.html APAR URL: http://www.ibm.com/software/htp/tpf/ztpfmaint/put10/PJ40684.htm
Reported component name
Reported component ID
Last modified date
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fixed component name
Fixed component ID
Applicable component levels