Nevenka Bierny updated SIGAR-231:
-
Cases: 12137606001
Possible ERANGE from getpwuid_r() in sigar_proc_cred_name_get()
---------------------------------------------------------------
Key: SIGAR-231
URL: https://jira.hyperic.com/browse/SIGAR-231
Project: Sigar
Issue Type: Bug
Reporter: Doug MacEachern
Assignee: Doug MacEachern
Priority: Major
Fix For: 1.6.6
>
sigar_proc_cred_name_get() uses getpwuid_r() underneath on Linux systems, where according the getpwuid_r() manpage:
"The maximum size needed for buf can be found using sysconf(3) with the argument SCGETPW_R_SIZE_MAX."
This seems to not be the case when looking up an entry outside of the local /etc/passwd (ldap for example).
The error surfaces in the Java bindings with the following exception:
Caused by: org.hyperic.sigar.SigarException: Numerical result out of range
at org.hyperic.sigar.ProcCredName.gather(Native Method)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.hyperic.com/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira