r2180: added RPC flags "padcheck" which enables checking of all received pad
authorAndrew Tridgell <tridge@samba.org>
Thu, 2 Sep 2004 10:45:58 +0000 (10:45 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:58:29 +0000 (12:58 -0500)
commit4d390df586ff1b4ba4b5bbfbde3c6393c6f5c829
tree4f298868ff860da16f31069e8282fced7eb9f80a
parent01f704e5ecbf371e60640c45c7e9d3f66a5a9fe0
r2180: added RPC flags "padcheck" which enables checking of all received pad
bytes to make sure they are zero. Non-zero values usually indicate one
of two things:

 - the server is leaking data through sending uninitialised memory
 - we have mistaken a real field in the IDL for padding

to differentiate between the two you really need to run with
"print,padcheck" and look carefully at whether the non-zero pad bytes
are random or appear to be deliberate.
(This used to be commit 7fdb778f81f14aaab75ab204431e4342a462957a)
source4/librpc/ndr/libndr.h
source4/librpc/ndr/ndr_basic.c
source4/librpc/rpc/dcerpc.c
source4/librpc/rpc/dcerpc.h
source4/librpc/rpc/dcerpc_util.c