diff options
author | Michal Zidek <mzidek@redhat.com> | 2013-08-05 20:59:33 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-08-11 20:39:57 +0200 |
commit | 4fda9979a05c1a4bf7a066f9633e8db5494f2eb3 (patch) | |
tree | 2bf843811f308c648fe95f7b54a2799dfabb52cf /src/responder/nss/nsssrv_mmap_cache.h | |
parent | 560e2b4a220f72de9ef99268a91d0e393e7045bf (diff) | |
download | sssd-4fda9979a05c1a4bf7a066f9633e8db5494f2eb3.tar.gz sssd-4fda9979a05c1a4bf7a066f9633e8db5494f2eb3.tar.xz sssd-4fda9979a05c1a4bf7a066f9633e8db5494f2eb3.zip |
mmap_cache: Check if slot and name_ptr are not invalid.
This patch prevents jumping outside of allocated memory in
case of corrupted slot or name_ptr values. It is not proper
solution, just hotfix until we find out what is the root cause
of ticket https://fedorahosted.org/sssd/ticket/2018
Diffstat (limited to 'src/responder/nss/nsssrv_mmap_cache.h')
-rw-r--r-- | src/responder/nss/nsssrv_mmap_cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/responder/nss/nsssrv_mmap_cache.h b/src/responder/nss/nsssrv_mmap_cache.h index 25cec40cc..fdeaa0912 100644 --- a/src/responder/nss/nsssrv_mmap_cache.h +++ b/src/responder/nss/nsssrv_mmap_cache.h @@ -63,4 +63,6 @@ errno_t sss_mmap_cache_gr_invalidate_gid(struct sss_mc_ctx *mcc, gid_t gid); errno_t sss_mmap_cache_reinit(TALLOC_CTX *mem_ctx, size_t n_elem, time_t timeout, struct sss_mc_ctx **mc_ctx); +void sss_mmap_cache_reset(struct sss_mc_ctx *mc_ctx); + #endif /* _NSSSRV_MMAP_CACHE_H_ */ |