From c44496df2f090a56d3bf75df930592dac6bba46f Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Wed, 12 Mar 2014 17:27:22 +0530 Subject: Provide correct buffer length to netgroup queries in nscd (BZ #16695) The buffer to query netgroup entries is allocated sufficient space for the netgroup entries and the key to be appended at the end, but it sends in an incorrect available length to the NSS netgroup query functions, resulting in overflow of the buffer in some special cases. The fix here is to factor in the key length when sending the available buffer and buffer length to the query functions. --- ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 21bd6210fb..ef301d8c37 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2014-03-12 Siddhesh Poyarekar + + [BZ #16695] + * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for + key in the buffer. + 2014-03-12 Adhemerval Zanella * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build IFUNC -- cgit 1.4.1