From 49b52ec16f8150d71a0ebfdd0a7067981fe5840a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 13 Feb 2009 16:06:17 -0800 Subject: Parameterize in local.h the MAX_RPC_DATA_SIZE, and ensure that "offered" read from the rpc packet in spoolss is under that size. Tidyup from analysis from Veracode. Jeremy. --- source3/include/local.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/include/local.h') diff --git a/source3/include/local.h b/source3/include/local.h index c125ded371..45767ad1c1 100644 --- a/source3/include/local.h +++ b/source3/include/local.h @@ -253,4 +253,7 @@ /* Windows minimum lock resolution timeout in ms */ #define WINDOWS_MINIMUM_LOCK_TIMEOUT_MS 200 +/* Maximum size of RPC data we will accept for one call. */ +#define MAX_RPC_DATA_SIZE (15*1024*1024) + #endif -- cgit