summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-02-13 16:06:17 -0800
committerJeremy Allison <jra@samba.org>2009-02-13 16:06:17 -0800
commit49b52ec16f8150d71a0ebfdd0a7067981fe5840a (patch)
tree7f6983695dedd88ab7402a2482f0e8feaafb7656 /source3/include
parentf6821a15a05248f185bb6cdd1aeb588504f12d61 (diff)
downloadsamba-49b52ec16f8150d71a0ebfdd0a7067981fe5840a.tar.gz
samba-49b52ec16f8150d71a0ebfdd0a7067981fe5840a.tar.bz2
samba-49b52ec16f8150d71a0ebfdd0a7067981fe5840a.zip
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.
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/local.h3
1 files changed, 3 insertions, 0 deletions
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