rpc_server: Fix CID 1311341 Integer handling issues (OVERFLOW_BEFORE_WIDEN)
commitfc372110c20c7a3e64684432a342c519aa92e0fc
authorVolker Lendecke <vl@samba.org>
Thu, 9 Jul 2015 17:27:41 +0000 (9 19:27 +0200)
committerRalph Böhme <slow@samba.org>
Thu, 9 Jul 2015 19:59:20 +0000 (9 21:59 +0200)
tree26499f38282f60128a4efad111fd6babcad026f9
parent3387969a1f0a7411b6c490f330a171c09cb8e179
rpc_server: Fix CID 1311341 Integer handling issues (OVERFLOW_BEFORE_WIDEN)

Quoting the full message:

Potentially overflowing expression "total_octets * 8U" with type "unsigned int"
(32 bits, unsigned) is evaluated using 32-bit arithmetic, and then used in a
context that expects an expression of type "uint64_t" (64 bits, unsigned).

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/rpc_server/mdssvc/marshalling.c