* nscd/mem.c (mempool_alloc): Round array size to 16 bytes
authorUlrich Drepper <drepper@redhat.com>
Mon, 2 Oct 2006 16:34:25 +0000 (16:34 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 2 Oct 2006 16:34:25 +0000 (16:34 +0000)
commit0b25a49a94f6d125456f1f3ac70ca7b330b69eda
tree8f771fa4395563fce64c1b4eff22a5649fb7c6fa
parenta128674505078487ccd21b1af49734ea7feb769a
* nscd/mem.c (mempool_alloc): Round array size to 16 bytes

in oldtotal and newtotal calculation.
* nscd/nscd-client.h (struct mapped_database): Add datasize
field.
* nscd/nscd_helper.c (get_mapping): Initialize datasize field.
(__nscd_get_map_ref): Get a new mapping even if mapping's data_size
increased.
(__nscd_cache_search): Add checks to make sure we never reference
data beyond the current mapping.
ChangeLog
nscd/mem.c
nscd/nscd-client.h
nscd/nscd_helper.c