s3/rpc_client: Ensure max possible row buffer size is not exceeded
authorNoel Power <noel.power@suse.com>
Wed, 14 Feb 2024 11:19:39 +0000 (11:19 +0000)
committerJule Anger <janger@samba.org>
Mon, 26 Feb 2024 09:34:15 +0000 (09:34 +0000)
commit1ab3de6f46e61281348f9275e0ae490b53591845
treee5ccae1e11f5417c23f9b4f319c9f10d8918e818
parent3e226dd1cd531dd070c866757e5f79492ce2b664
s3/rpc_client: Ensure max possible row buffer size is not exceeded

The max buf size of rows buffer should not exceed 0x00004000.
Ensuring this value is within limits means we can safely use
uint32_t offsets.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15579
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit f487211706a74d516bf447ed393222b4c0dce7b0)
source3/rpc_client/wsp_cli.c