]> git.ipfire.org Git - thirdparty/glibc.git/commit
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)
committerAllan McRae <allan@archlinux.org>
Fri, 5 Sep 2014 12:44:10 +0000 (22:44 +1000)
commit4e27332819b6151ccb5031d0efd718d802168573
treec29dabaac78deb39c6904c3d726425d5cb97f2fd
parent9583c3542133be925467c87df7f74882783d867d
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.

(cherry picked from commit c44496df2f090a56d3bf75df930592dac6bba46f)

Conflicts:
NEWS
ChangeLog
NEWS
nscd/netgroupcache.c