svn commit: samba r2949 - in branches/SAMBA_4_0/source/librpc/idl: .
tridge at samba.org
tridge at samba.org
Wed Oct 13 13:00:57 GMT 2004
Author: tridge
Date: 2004-10-13 13:00:57 +0000 (Wed, 13 Oct 2004)
New Revision: 2949
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/librpc/idl&rev=2949&nolog=1
Log:
added some range checks in samr.idl
Modified:
branches/SAMBA_4_0/source/librpc/idl/samr.idl
Changeset:
Modified: branches/SAMBA_4_0/source/librpc/idl/samr.idl
===================================================================
--- branches/SAMBA_4_0/source/librpc/idl/samr.idl 2004-10-13 12:55:10 UTC (rev 2948)
+++ branches/SAMBA_4_0/source/librpc/idl/samr.idl 2004-10-13 13:00:57 UTC (rev 2949)
@@ -48,7 +48,7 @@
/* Function: 0x02 */
typedef struct {
- [value(ndr_size_security_descriptor(r->sd))] uint32 sd_size;
+ [range(0,262144),value(ndr_size_security_descriptor(r->sd))] uint32 sd_size;
[subcontext(4)] security_descriptor *sd;
} samr_SdBuf;
@@ -328,7 +328,7 @@
} samr_SidType;
typedef struct {
- uint32 count;
+ [range(0,1024)] uint32 count;
[size_is(count)] uint32 *ids;
} samr_Ids;
@@ -343,7 +343,7 @@
NTSTATUS samr_LookupNames(
[in,ref] policy_handle *domain_handle,
- [in] uint32 num_names,
+ [in,range(0,1000)] uint32 num_names,
[in,ref,size_is(1000),length_is(num_names)] samr_Name *names,
[out] samr_Ids rids,
[out] samr_Ids types
@@ -360,7 +360,7 @@
NTSTATUS samr_LookupRids(
[in,ref] policy_handle *domain_handle,
- [in] uint32 num_rids,
+ [in,range(0,1000)] uint32 num_rids,
[in,ref,size_is(1000),length_is(num_rids)] uint32 *rids,
[out] samr_Names names,
[out] samr_Ids types
More information about the samba-cvs
mailing list