diff options
author | Günther Deschner <gd@samba.org> | 2008-02-14 14:36:30 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-14 14:40:26 +0100 |
commit | 01f5d15b2c0e988e9f9cea36bcdd776be2536b71 (patch) | |
tree | 4ff777ffd5ff9b6dd6cb2d255b62bacc2d4c228c /source3/librpc/gen_ndr | |
parent | 3329432d1f6e9dab31a970b2b407374c144d68ba (diff) | |
download | samba-01f5d15b2c0e988e9f9cea36bcdd776be2536b71.tar.gz samba-01f5d15b2c0e988e9f9cea36bcdd776be2536b71.tar.bz2 samba-01f5d15b2c0e988e9f9cea36bcdd776be2536b71.zip |
Re-run make idl.
Guenther
(This used to be commit 5137ebe068c32ce7cb204cff049ba7f7f2d86abc)
Diffstat (limited to 'source3/librpc/gen_ndr')
-rw-r--r-- | source3/librpc/gen_ndr/ndr_lsa.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/librpc/gen_ndr/ndr_lsa.c b/source3/librpc/gen_ndr/ndr_lsa.c index 12544b1b72..a95665f0fa 100644 --- a/source3/librpc/gen_ndr/ndr_lsa.c +++ b/source3/librpc/gen_ndr/ndr_lsa.c @@ -3288,6 +3288,9 @@ static enum ndr_err_code ndr_pull_lsa_RightSet(struct ndr_pull *ndr, int ndr_fla if (ndr_flags & NDR_SCALARS) { NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count)); + if (r->count < 0 || r->count > 256) { + return ndr_pull_error(ndr, NDR_ERR_RANGE, "value out of range"); + } NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_names)); if (_ptr_names) { NDR_PULL_ALLOC(ndr, r->names); |