OpenSolaris

Printable Version Enter a New Search
Bug ID 6778627
Synopsis getsidname() has incorrect snprintf statement that causes truncated SIDs
State 10-Fix Delivered (Fix available in build)
Category:Subcategory library:other
Keywords
Responsible Engineer Mark Shellenbaum
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_105
Fixed In snv_105
Release Fixed solaris_nevada(snv_105)
Related Bugs 6714392 , 6773172 , 6785345
Submit Date 1-December-2008
Last Update Date 17-December-2008
Description
The function getsidname() uses snprintf() to determine how big of a buffer to allocate for a sid string, but has a small typo in the statement that can result in truncated SID strings.

len = snprintf(NULL, 0, "%s@%d", name, domain);

this should be:
len = snprintf(NULL, 0, "%s@%s", name, domain);
Work Around
N/A
Comments
N/A