pidl/NDR/Parser: also do range checks on the array size
authorStefan Metzmacher <metze@samba.org>
Thu, 15 Mar 2012 16:03:05 +0000 (17:03 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 10 Apr 2012 18:19:59 +0000 (20:19 +0200)
commit7330bdbbd62a0fc69d6d193bb3f3294013e62f01
tree766ed4fc713e38ddc9dcd6eb9c7f5fd48f09564d
parent7c3e90c07a77e66947e89dbbdec3fb9d3178a75b
pidl/NDR/Parser: also do range checks on the array size

metze

The last 8 patches address bug #8815 (PIDL based autogenerated code allows
overwriting beyond of allocated array; CVE-2012-1182).
(cherry picked from commit 0b9d59d256a74594e89467e5ebe4e62c25c9572e)
pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm