diff options
author | Günther Deschner <gd@samba.org> | 2009-03-17 17:24:01 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-03-17 19:07:35 +0100 |
commit | f94a6f4801e5b2b83e5f4888aba21f3647e23f9a (patch) | |
tree | 56cd75bc664ae04f94842aed502c3c095e72264c /librpc | |
parent | 4cb3cbea84c6cf30b123eb5070905eeed5aba4d7 (diff) | |
download | samba-f94a6f4801e5b2b83e5f4888aba21f3647e23f9a.tar.gz samba-f94a6f4801e5b2b83e5f4888aba21f3647e23f9a.tar.bz2 samba-f94a6f4801e5b2b83e5f4888aba21f3647e23f9a.zip |
spoolss: add range checks for priority element in spoolss_JobInfo structs.
Guenther
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/idl/spoolss.idl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/librpc/idl/spoolss.idl b/librpc/idl/spoolss.idl index 529d44edd5..32f7760336 100644 --- a/librpc/idl/spoolss.idl +++ b/librpc/idl/spoolss.idl @@ -289,7 +289,7 @@ import "misc.idl", "security.idl", "winreg.idl"; [relative] nstring *parameters; [relative,subcontext(0)] security_descriptor *secdesc; spoolss_PrinterAttributes attributes; - uint32 priority; + [range(0,99)] uint32 priority; uint32 defaultpriority; uint32 starttime; uint32 untiltime; @@ -410,7 +410,7 @@ import "misc.idl", "security.idl", "winreg.idl"; [relative] nstring *data_type; [relative] nstring *text_status; spoolss_JobStatus status; - uint32 priority; + [range(0,99)] uint32 priority; uint32 position; uint32 total_pages; uint32 pages_printed; @@ -432,7 +432,7 @@ import "misc.idl", "security.idl", "winreg.idl"; [relative] nstring *text_status; [relative] security_descriptor *secdesc; spoolss_JobStatus status; - uint32 priority; + [range(0,99)] uint32 priority; uint32 position; uint32 start_time; uint32 until_time; @@ -464,7 +464,7 @@ import "misc.idl", "security.idl", "winreg.idl"; [relative] nstring *text_status; [relative] security_descriptor *secdesc; spoolss_JobStatus status; - uint32 priority; + [range(0,99)] uint32 priority; uint32 position; uint32 start_time; uint32 until_time; @@ -493,7 +493,7 @@ import "misc.idl", "security.idl", "winreg.idl"; [string,charset(UTF16)] uint16 *data_type; [string,charset(UTF16)] uint16 *text_status; spoolss_JobStatus status; - uint32 priority; + [range(0,99)] uint32 priority; uint32 position; uint32 total_pages; uint32 pages_printed; @@ -515,7 +515,7 @@ import "misc.idl", "security.idl", "winreg.idl"; [string,charset(UTF16)] uint16 *text_status; uint32 _secdesc_ptr; spoolss_JobStatus status; - uint32 priority; + [range(0,99)] uint32 priority; uint32 position; uint32 start_time; uint32 until_time; @@ -541,7 +541,7 @@ import "misc.idl", "security.idl", "winreg.idl"; [string,charset(UTF16)] uint16 *text_status; uint32 _secdesc_ptr; spoolss_JobStatus status; - uint32 priority; + [range(0,99)] uint32 priority; uint32 position; uint32 start_time; uint32 until_time; @@ -704,7 +704,7 @@ import "misc.idl", "security.idl", "winreg.idl"; [string,charset(UTF16)] uint16 *parameters; [subcontext(0)] security_descriptor *secdesc; spoolss_PrinterAttributes attributes; - uint32 priority; + [range(0,99)] uint32 priority; uint32 defaultpriority; uint32 starttime; uint32 untiltime; |