r9347: this array bounds checking is harder than it looks ...
authorAndrew Tridgell <tridge@samba.org>
Wed, 17 Aug 2005 03:30:45 +0000 (03:30 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:33:27 +0000 (13:33 -0500)
commitad1b9867a5a14bc9ed2e1a5eb8f05bb2046bc645
tree454d4d8982b88b0c4a3dc470ced4406d00bd5342
parent3ad02091f621e3ff51aa082ca7a47b9da238aa40
r9347: this array bounds checking is harder than it looks ...

this copes with 2 more situations:

1) where the array is NULL, which would previously be coped with by a
   if (ptr) check, but now in the deferred array bounds checking needs
   to look at the array variable in the ndr code. Not nice.

2) nest the array checking along with the SCALARS vs BUFFERS checks, ensuring we don't
   do array bounds checking for a buffer when in scalars only mode
source/build/pidl/Parse/Pidl/Samba/NDR/Parser.pm
source/librpc/ndr/ndr.c