OpenSolaris

Printable Version Enter a New Search
Bug ID 6647350
Synopsis passwdutil:files_attr appears to have memory use problems
State 10-Fix Delivered (Fix available in build)
Category:Subcategory pam:passwdutil
Keywords
Responsible Engineer Gary Winiger
Reported Against
Duplicate Of
Introduced In solaris_9
Commit to Fix snv_82
Fixed In snv_82
Release Fixed solaris_nevada(snv_82)
Related Bugs
Submit Date 4-January-2008
Last Update Date 31-January-2008
Description
## 08/01/04 gww ##
I couldn't find a CR addressing this, though I seem to have noted
it and created a proposed fix on 19 Apr 2007.

There seems to be a use of allocated memory without testing
if the allocation succeeded in files_getpwnam().
There seems to be a memory leak in files_update() ATTR_PASSWD

It's possible there are more.  These seem to be what I saw in April.

Gary..
## 08/01/11 gww ##
It turns out there really isn't a memory leak.  So the only
issue is the not checking for alloc failure.

Gary..
Work Around
N/A
Comments
N/A