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)
committerStefan Metzmacher <metze@samba.org>
Tue, 23 Apr 2024 16:16:45 +0000 (18:16 +0200)
commit8bcff6a6bdda50856714d32be8052d513523d6f9
treee175dc56851d9263b46213fb319e75497b6b980c
parent1d0d79a9685ffcc47e273e0fb039714b9b2c2965
dcerpc_util: let dcerpc_pull_auth_trailer() check that auth_offset is 4 bytes aligned

That what Windows (at least 2012_R2) 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>
librpc/rpc/dcerpc_util.c