]> git.ipfire.org Git - thirdparty/samba.git/commit
dcerpc_util: let dcerpc_pull_auth_trailer() check that auth_offset is 4 bytes aligned
authorStefan Metzmacher <metze@samba.org>
Wed, 11 Nov 2020 16:05:21 +0000 (17:05 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 10 Oct 2024 14:01:04 +0000 (14:01 +0000)
commit890fff1ca0c4e1eb8ef26c4f88aa18aeda3afc4f
tree475eb993e1b5cc598d62e3b99bab1f6663f14bd9
parentf7a3827010a859839a3ae7d0cdf297a15610d286
dcerpc_util: let dcerpc_pull_auth_trailer() check that auth_offset is 4 bytes aligned

That what Windows also asserts.

It also makes sure that ndr_pull_dcerpc_auth() will
start with ndr->offset = 0 and don't tries to eat
possible padding.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
librpc/rpc/dcerpc_util.c
selftest/knownfail.d/dcerpc-auth-pad