summaryrefslogtreecommitdiff
path: root/source4/build/pidl/validator.pm
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/pidl/validator.pm')
-rw-r--r--source4/build/pidl/validator.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/build/pidl/validator.pm b/source4/build/pidl/validator.pm
index 37f2e26e41..1636a155e3 100644
--- a/source4/build/pidl/validator.pm
+++ b/source4/build/pidl/validator.pm
@@ -44,6 +44,15 @@ sub ValidElement($)
if (util::has_property($e, "ptr")) {
fatal(el_name($e) . " : pidl does not support full NDR pointers yet\n");
}
+
+ if (util::has_property($e, "size_is") and not defined ($e->{ARRAY_LEN})) {
+ fatal(el_name($e) . " : size_is() on non-array element");
+ }
+
+ if (util::has_property($e, "length_is") and not defined ($e->{ARRAY_LEN})) {
+ fatal(el_name($e) . " : length_is() on non-array element");
+ }
+
if (!$e->{POINTERS} && (
util::has_property($e, "ptr") or