pidl: Assert that python arrays will not overflow the C array
commite3cf25bdc04795f884fe2a4ce0605d5175b45e93
authorAndrew Bartlett <abartlet@samba.org>
Thu, 30 Jul 2015 02:28:48 +0000 (30 14:28 +1200)
committerStefan Metzmacher <metze@samba.org>
Mon, 24 Aug 2015 21:46:22 +0000 (24 23:46 +0200)
tree5bf63fb1fc663ca2e41721bc027e3ad867c66cd5
parentbed29f3c92861fb2b83ad03a5c759061e1c31eba
pidl: Assert that python arrays will not overflow the C array

We do not write network services in Python, so this is not a security issue, but would cause
a crash or other odd behaviour if the length was changed

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11430

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
pidl/lib/Parse/Pidl/Samba4/Python.pm