Skip to main content

TPF : Support : Maintenance TPF : Support : Maintenance

Skip to: Abstract | Comments | Solution | Migration | Download

APAR NUMBER:  PJ30708                           
PRODUCT:  TPF4  
FUNCTIONAL AREA:  TCP/IP NATIVE STACK  
SHIPPED IN PUT:  20  
   

ABSTRACT:  
A possible ECB heap memory leak can occur when using the inet_ntoa()  
function.  
   
APAR CONTENTS:  
FEATURE   TYPE                STATUS    NAME                                
Base      CHeader             Changed   include/c$eb0eb.h  
Base      LoadExecutable      Changed   load/oco/cmn040.exe  
Base      LoadExecutable      Changed   load/oco/cmn540.exe  
Base      DataMacro           Changed   macro/ieqce2.mac  
Base      Copy                Changed   source/cp/base/chsz40.cpy  
Base      C                   Changed   source/rt/base/cintoa.c  
Base      C                   Changed   source/rt/base/cltu.c  
   
PREREQUISITE APARS:  To be applied in order listed.  
Base      CHeader             Changed   include/c$eb0eb.h  
 PJ25294(09)  PJ25632(09)  PJ25589(09)  PJ25684(09)  
 PJ25459(09)  
 PJ25780(09)  PJ25696(10)  PJ25722(10)  PJ25983(10)  
 PJ25981(10)  
 PJ25962(10)  PJ26150(10)  PJ26162(11)  PJ26441(11)  
 PJ26468(11)  
 PJ26575(11)  PJ26683(11)  PJ26600(11)  PJ26581(11)  
 PJ26775(12)  
 PJ26746(12)  PJ26793(12)  PJ26914(12)  PJ26721(12)  
 PJ27298(13)  
 PJ27383(13)  PJ27393(13)  PJ27445(14)  PJ27530(14)  PJ28118(15)  
 PJ28218(16)  PJ28195(16)  PJ28526(17)  PJ28623(17)  PJ28649(17)  
 PJ29515(18)  PJ29921(19)  PJ29962(19)  PJ30282(20)  
Base      LoadExecutable      Changed   load/oco/cmn040.exe  
 PJ27966(15)  PJ28195(16)  PJ28224(16)  PJ28396(16)  PJ29077(18)  
 PJ29501(18)  PJ28994(19)  PJ29755(19)  PJ29632(19)  PJ29883(19)  
 PJ29440(19)  PJ30025(19)  PJ30259(20)  
Base      LoadExecutable      Changed   load/oco/cmn540.exe  
 PJ28396(16)  PJ29077(18)  PJ29501(18)  PJ28994(19)  PJ29755(19)  
 PJ29632(19)  PJ29440(19)  PJ30025(19)  PJ30259(20)  
Base      DataMacro           Changed   macro/ieqce2.mac  
 PJ25632(09)  PJ25589(09)  PJ25696(10)  PJ25722(10)  
 PJ25983(10)  
 PJ25981(10)  PJ26150(10)  PJ26156(10)  PJ26468(11)  
 PJ26575(11)  
 PJ26683(11)  PJ26600(11)  PJ26581(11)  PJ26793(12)  
 PJ27383(13)  
 PJ28118(15)  PJ28218(16)  PJ28195(16)  PJ28526(17)  PJ28623(17)  
 PJ28649(17)  PJ29515(18)  PJ29921(19)  PJ30282(20)  
Base      Copy                Changed   source/cp/base/chsz40.cpy  
 PJ25294(09)  PJ25632(09)  PJ25589(09)  PJ25684(09)  
 PJ25459(09)  
 PJ25981(10)  PJ26008(10)  PJ26188(10)  PJ26281(11)  
 PJ26575(11)  
 PJ26683(11)  PJ26600(11)  PJ26581(11)  PJ26746(12)  
 PJ26818(12)  
 PJ26793(12)  PJ27383(13)  PJ27393(13)  PJ27530(14)  PJ27746(14)  
 PJ28218(16)  PJ28195(16)  PJ28649(17)  PJ29515(18)  PJ29573(19)  
 PJ29921(19)  PJ30236(20)  PJ30213(20)  PJ30282(20)  PJ30352(20)  
Base      C                   Changed   source/rt/base/cltu.c  
 PJ27785(15)  PJ28586(17)  
   

COMMENTS:  
The inet_ntoa() function takes a hexadecimal IP address and converts it  
to displayable dotted decimal string. The malloc storage is used for  
the reply buffer to save the dotted decimal IP address. The address of  
this malloc storage is returned to the application and the malloc  
storage is never released. All subsequent inet_ntoa() calls will obtain  
a new malloc block for return to the application. If a long-running ECB  
issues enough inet_ntoa() functions, the ECB can run out of malloc  
storage.  
   

SOLUTION:  
The inet_ntoa() function has been updated to obtain malloc storage the  
first time the ECB issues the function and to reuse that malloc storage  
for all subsequent calls.  
   
   

DEPENDENCIES  
   
SEGMENTS TO BE ASSEMBLED OR COMPILED:  
CCNUCL  
   
SEGMENTS TO BE LINK EDITED:  
cltn40.exe (Shipped in Tar File)  
comx40.exe (Shipped in Tar File)  
cps040.exe  
   
COREQS:  
None.  
   

MIGRATION CONSIDERATIONS:  
None.  
   
UPDATED INFORMATION UNITS:  
None.  
   
See your IBM representative if you need additional information.  
   

DOWNLOAD INSTRUCTIONS:  
http://www.ibm.com/software/htp/tpf/pages/maint.htm
   
-- END APAR PJ30708 
       



Download file(s): Login once to access server, leave window open, then click on link(s) below. Listing Binary Source