]> git.ipfire.org Git - thirdparty/glibc.git/commit - ChangeLog
Provide correct buffer length to netgroup queries in nscd (BZ #16695)
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 12 Mar 2014 11:57:22 +0000 (17:27 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 12 Mar 2014 11:58:13 +0000 (17:28 +0530)
commitc44496df2f090a56d3bf75df930592dac6bba46f
tree8524bc2814c863852dd3622840acc42cb9861326
parent27c7220a483bda576533aa9a0a9b42175644b1a1
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
NEWS
nscd/netgroupcache.c