Summary: | Improper use of asprintf() in login/pam_systemd.c | ||
---|---|---|---|
Product: | systemd | Reporter: | Archie Cobbs <archie.cobbs> |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED WONTFIX | QA Contact: | systemd-bugs |
Severity: | normal | ||
Priority: | medium | CC: | KOTI-P-scholar |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Archie Cobbs
2015-04-13 16:03:05 UTC
asprintf() is not POSIX anyway. This has come up before, but I think the man page is simply a bit unlcear (I mean, it confuses "undefined" with "whatever was set before", the code in glibc actually doesn't clobber the pointer. Either way, I am pretty sure our code does this right and we should leave it that way. SHould asprintf() in glibc really change their logic one day and start clobbering the pointer on failure, then the right answer is to wrap asprintf() in some call safe_asprintf() or so which fixes this behaviour. Either way I don't think we need to fix anything now. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.