diff options
author | Jeremy Allison <jra@samba.org> | 2009-02-13 16:06:17 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-02-13 16:06:17 -0800 |
commit | 49b52ec16f8150d71a0ebfdd0a7067981fe5840a (patch) | |
tree | 7f6983695dedd88ab7402a2482f0e8feaafb7656 /source3/include | |
parent | f6821a15a05248f185bb6cdd1aeb588504f12d61 (diff) | |
download | samba-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.h | 3 |
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 |