Files
xen/tools/libxl
Ian Jackson 6cde84a81b libxl: dm_restrict: DEFINE_USERLOOKUP_HELPER returned a pointer to an auto
When I converted the previous open-coded user lookup functionality
into DEFINE_USERLOOKUP_HELPER, I moved the struct passwd buffer into
the function generated by the macro.  This is wrong because that
buffer is used by get{pw,gr}* for its return value, so the helper
function would contrive to return a pointer to the buffer on its own
stack.

Fix this by adding a buffer parameter to the generated helpers, that
the caller must supply, and updating all the call sites.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
2017-10-13 11:31:59 +01:00
..
2013-10-10 15:48:55 +01:00
2012-10-05 14:34:30 +01:00
2017-06-30 15:25:07 +01:00
2017-02-03 15:27:48 +00:00
2017-09-28 15:28:02 +01:00
2017-09-26 11:10:08 +01:00
2017-09-26 11:10:08 +01:00
2017-09-28 15:28:02 +01:00
2016-12-13 20:25:25 +00:00
2017-09-13 10:54:45 +03:00
2016-04-20 14:34:04 +01:00
2016-12-13 20:25:25 +00:00
2016-12-13 20:25:25 +00:00
2016-12-13 20:25:25 +00:00
2013-10-10 15:48:55 +01:00
2011-10-12 16:21:32 +01:00