OpenSolaris

Printable Version Enter a New Search
Bug ID 6754169
Synopsis Memory leak in __pam_display_msg() where pam_response structure is not freed
State 10-Fix Delivered (Fix available in build)
Category:Subcategory pam:framework
Keywords rtiq_regression
Responsible Engineer Peter Shoults
Reported Against snv_101
Duplicate Of
Introduced In solaris_2.6
Commit to Fix snv_101
Fixed In snv_101
Release Fixed solaris_nevada(snv_101) , solaris_10u7(s10u7_02) (Bug ID:2167727)
Related Bugs 4845981
Submit Date 30-September-2008
Last Update Date 22-October-2008
Description
__pam_display_msg() calls do_conv which will return a pam_response structure.  It is the responsibility of the pam framework to free this structure.  Here is a snippet from the pam_start manpage:

----------------
The structure pam_response is  used  by  the  authentication
service to get the user's response back from the application
or user. The storage used by pam_response has  to  be
allocated by the application and freed by the  PAM modules.
----------------

This routine has no interest in the pam_response structure, it
merely wants to have a message displayed.  So, we need to 
free this pam_response up in the __pam_display_msg() routine
before returning.
Work Around
N/A
Comments
N/A