CVE-2023-34967: mdssvc: add type checking to dalloc_value_for_key()
authorRalph Boehme <slow@samba.org>
Fri, 26 May 2023 13:06:38 +0000 (15:06 +0200)
committerJule Anger <janger@samba.org>
Fri, 14 Jul 2023 13:14:57 +0000 (15:14 +0200)
commit049c13245649fab412b61a5b55e5a7dea72d7c72
tree4a9d884638ccd18636c3cf0e8ee860550956144e
parent7812c56d4cb44a59a49c68d05a9c38c1d2ebeb19
CVE-2023-34967: mdssvc: add type checking to dalloc_value_for_key()

Change the dalloc_value_for_key() function to require an additional final
argument which denotes the expected type of the value associated with a key. If
the types don't match, return NULL.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15341

Signed-off-by: Ralph Boehme <slow@samba.org>
source3/rpc_server/mdssvc/dalloc.c
source3/rpc_server/mdssvc/mdssvc.c