aboutsummaryrefslogtreecommitdiff
path: root/nscd/nscd-client.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-10-02 16:34:25 +0000
committerUlrich Drepper <drepper@redhat.com>2006-10-02 16:34:25 +0000
commit0b25a49a94f6d125456f1f3ac70ca7b330b69eda (patch)
tree8f771fa4395563fce64c1b4eff22a5649fb7c6fa /nscd/nscd-client.h
parenta128674505078487ccd21b1af49734ea7feb769a (diff)
downloadglibc-0b25a49a94f6d125456f1f3ac70ca7b330b69eda.zip
glibc-0b25a49a94f6d125456f1f3ac70ca7b330b69eda.tar.gz
glibc-0b25a49a94f6d125456f1f3ac70ca7b330b69eda.tar.bz2
* 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.
Diffstat (limited to 'nscd/nscd-client.h')
-rw-r--r--nscd/nscd-client.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/nscd/nscd-client.h b/nscd/nscd-client.h
index 440697f..0fd2d9f 100644
--- a/nscd/nscd-client.h
+++ b/nscd/nscd-client.h
@@ -258,6 +258,7 @@ struct mapped_database
const char *data;
size_t mapsize;
int counter; /* > 0 indicates it is usable. */
+ size_t datasize;
};
#define NO_MAPPING ((struct mapped_database *) -1l)