s3:rpc fix potential out of bound memory access
authorSimo Sorce <ssorce@redhat.com>
Mon, 7 Jun 2010 19:07:38 +0000 (15:07 -0400)
committerSimo Sorce <ssorce@redhat.com>
Mon, 7 Jun 2010 21:25:47 +0000 (17:25 -0400)
commitf7e2e8370bfa91ad8dbd9de4f69bf1cfe0947573
treebf5334ee530f8db5b266ada39efc9c1140498dd6
parent711a30aa61bb5f6a9b3970007bad8a70f411fb87
s3:rpc fix potential out of bound memory access

memcpy copies memory unconditionally, we are passing "" in some cases here.
Use strncpy which will stop reading from src if the null byte is found and
will fill with nulls the destination.
source3/rpc_server/rpc_ncacn_np_internal.c