Robustify libc-side nscd database reader.
commitcfe1fc1013d0e7e4863c974fa0e78891cc0a2ed2
authorJakub Jelinek <jakub@redhat.com>
Sat, 16 May 2009 04:17:08 +0000 (15 21:17 -0700)
committerUlrich Drepper <drepper@redhat.com>
Sat, 16 May 2009 04:17:08 +0000 (15 21:17 -0700)
tree77134fa880e4dd6db41a701034607e67a4dd9be1
parent3b1b533bc3239ef6df1e40e0088e7270ac060be6
Robustify libc-side nscd database reader.

The nscd database mapped in processes can change at any time.  We
have to be more vigilant when it comes to using that memory.  Test
the data entries are valid in their entire size, don't read data
again from memory once we verified it, and make sure the trailing
pointer is not going off the deep end.
ChangeLog
nscd/nscd-client.h
nscd/nscd_getai.c
nscd/nscd_getgr_r.c
nscd/nscd_gethst_r.c
nscd/nscd_getpw_r.c
nscd/nscd_getserv_r.c
nscd/nscd_helper.c
nscd/nscd_initgroups.c